Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Search Results for 'child theme'

Home / Forums / Search / Search Results for 'child theme'

Viewing 20 results - 661 through 680 (of 6,404 total)
  • Author
    Search Results
  • #251811

    Just out of a desire to learn, I stumbled across the archive-header.php file. I copied it to my child theme and added the below code. It did exactly what I needed it to do.

    
    if (is_post_type_archive('event')) {
        $src = wp_get_attachment_image_src( '1896', 'full');
        $bg_position = "center 40%";
        $bg_image = $src[0];
        $bg_cover = "cover";
    }
    
    #251806

    I want to clarify that I have a file in my child theme, archive-event.php, which is generating the events archive page. Since it is not a page that is accessible from the dashboard, I can’t assign a background image in the way you described. Can I add anything to my archive template file or functions file that can trigger overriding the default page background? Is there another way to get at it? I only want to change it for the Event CPT Archive page.

    #251749

    Hi There,

    I have had ongoing issues with portfolio pages showing as 404 errors.

    My developer has suggested I get in touch as he had to ammend a parent theme file to fix: themes/virtue_premium/lib/post-types.php

    he added:
    39 //'rewrite' => false,
    40 'rewrite' => array( 'slug' => 'portfolio' ),

    We are using a child theme and never edit the parent theme, so hoping you can advise on this.

    The site has been up for many years and we have only just started having this issue. It’s working with the fix for now.

    Thanks for your help.

    #251742

    also get this error:
    “[21-Jun-2020 05:14:55 UTC] PHP Fatal error: Uncaught Error: Call to undefined function kadence_category_layout_css() in /home/XXX/public_html/wp-content/themes/virtue_premium_child/woocommerce/archive-product.php:110
    Stack trace:
    #0 /home/XXX/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(251): include()
    #1 /home/XXX/public_html/wp-content/themes/virtue_premium/woocommerce/taxonomy-product_cat.php(20): wc_get_template(‘archive-product…’)
    #2 /home/XXX/public_html/wp-content/themes/virtue_premium/base.php(17): include(‘/home/trkgdatte…’)
    #3 /home/XXX/public_html/wp-includes/template-loader.php(106): include(‘/home/trkgdatte…’)
    #4 /home/XXX/public_html/wp-blog-header.php(19): require_once(‘/home/trkgdatte…’)
    #5 /home/XXX/public_html/index.php(17): require(‘/home/trkgdatte…’)
    #6 {main}
    thrown in /home/XXX/public_html/wp-content/themes/virtue_premium_child/woocommerce/archive-product.php on line 110

    does this have anything to do with this?

    thx

    #251730

    HI, several of my sites crash since I moved to 7.4 (perhaps 7.3), fpm seems to play a huge role

    [21-Jun-2020 12:06:30 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/XXX/public_html/wp-content/themes/virtue_premium/themeoptions/options/extensions/kad_icons/kad_icons/field_kad_icons.php on line 1

    had same issue with another theme file (and yoast)

    Is that only a memory limit (256MB is not enough) issue? Or something with theme also?

    Thx

    Dan

    also: get this warning: [21-Jun-2020 12:06:30 UTC] PHP Deprecated: Function create_function() is deprecated in /home/XXXX/public_html/wp-content/themes/virtue_child/functions.php on line 16

    #251709

    I created a custom post type for Events. I also ended up creating a new Archive template for it (archive-event.php). Is there any way for me to be able to change the default background image in the page title area? I found an “archive-header.php” file. Is the best way for me to create a file in my child theme to override it and enter my own custom code, or is there a hook (I would prefer this method)?

    #251603

    Hey,
    In the case where you make templates you would have to make custom templates for men’s shirts and custom template for woman, then assign them on a product by product bases for at least all the men’s or all the womans so that if your default is the men’s template then the womans is the ones you assign.

    Using the code Hannah posted seems like it might be your easiest option, even without a child theme you can use a snippets plugin to add it:
    https://wordpress.org/plugins/code-snippets/

    Another option is to hide related products and instead use the linked products where you manually assign products to show as linked, this is much more labor-intensive though.

    Ben

    #251543

    Either a child theme or a codesnippet plugin: https://wordpress.org/plugins/code-snippets/

    Ben

    #251532

    Yes that makes sense, thank you for the clarification! Where do you add that code? Do I need to make a child theme in order to do that?

    #251472

    Hi Henry,
    There isn’t a built-in functionality for this. Though it may be something you can work around with some custom code. Are you using a plugin for your search? If so, which one? Are you using a child theme? And can you post a link?
    Thanks!

    Hannah

    #251353

    Thanks hannah,

    No im not using a child theme.

    Yes I have already added a tag “Mens” and “Ladies” to each product, is this what you mean?

    #251317

    Hey,
    The related products carousel pulls from both related categories and related tags. You would need to make your tags specific for men and women if you’re wanting to keep the carousel specific. Or, if you’re using a child theme you can add a filter that would keep the carousel from reading the tags. Like this: add_filter( 'woocommerce_product_related_posts_relate_by_tag', '__return_false' );
    Hope that helps!

    Hannah

    #251249

    Hi dear Kadence Team
    I builded the web-site saitensprung.ch on a child theme with pinnacle premium.
    Now i realised that the search site shows the demo image.
    Is it possible to replace it to a simple grey #c5c5c5?

    thank you for your help!

    Kind regards
    Ulrika

    In forum: Virtue Theme
    #251233

    I have virtue Premium (Bold) and a child theme installed. My client asked for a back tot he top button. I have been through the settings 3 times but there are so many. Is there a back to top option? If so where is it located. If not, how can I add an option.

    Website in Question: Sunshine Therapeutics

    In forum: Membership Forums

    In reply to: Theme icons and css

    #251129

    Hey – good morning – and thanks for the feedback!

    This answers my questions… I did see the inline svg method for your icon block. As we get used to our new workflow and learn the ins and outs of Kadence Theme + Blocks, we may find we don’t need to resort to css for font icons. (I was just setting up our default child theme and deciding what we need to include from our old custom theme.) If we run into a use case where we do, I’ll reach out with specifics. Worst case scenario, I can still use fa.

    Thanks again!

    #251113

    Hi there
    I’m very confused on how to work with you plugin using elementor and as a matter of face the explanations in your site is not enough.

    I bought the membership package and I want to use your woo extra plugin on a child theme of woocommerce storefront theme…. I’m not working with one of your themes.
    Anyway, I’m building a single product page using elementor template and when I try to use the product gallery, the images are stacked instead of showing like the configuration I gave it on woo extra settings

    #250895

    Hey John,
    The only two workarounds I can think of for this would be to either create a child theme and add the function above to your functions.php. Or else to create your tours and such as posts, rather than pages. Would either of these routes work for you?

    Hannah

    In forum: Ascend Theme

    In reply to: staff excerpt lenght

    #250832

    In the child themes functions.php

    Though I just realized we don’t have excerpt text specified. It seems to be treating the regular content as an excerpt because it is stripping the html out and only showing a limited amount

    Jeremy

    In forum: Ascend Theme
    #250797

    If there’s a way for the “Kadence bbpress design / support forums” plug-in to include all the styling changes that’d be great. It might be simpler for me than managing a child theme.

    In forum: Ascend Theme
    #250777

    Hey sorry I meant an admin login. Can you send me admin access so I can see your settings. I may push in a little child theme for you if necessary,

    Ben

Viewing 20 results - 661 through 680 (of 6,404 total)