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 - 1,001 through 1,020 (of 6,404 total)
  • Author
    Search Results
  • #233619

    Thank you Ben! That’s awesome. Pages other than the home page will only have the logo (a different one, see attached) and not the text box below that. Can you have a different logo on the home page or should I build that first logo into that box only?

    I don’t know but I’m assuming this is a child theme thing where the php will change or something? Php is my next hurdle.

    Thank you,

    Luke

    Anonymous
    #233470

    Hi

    I am using yoast breadcrumbs and have added the following to my functions.php in my child theme:

    add_action('kt_afterheader', 'custom_breadcrumbs_add');
    function custom_breadcrumbs_add(){
    if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('<div class="container"><p id="breadcrumbs">','</p></div>');
    }
    }

    But that only seems to affects products.

    To get the breadcrumbs working on my pages, I have added the following to page.php

    <?php
    if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
    }
    ?>

    And I cannot get it to work on blog posts at all.

    Question – is there code I can add to functions.php that will show breadcrumbs on products, posts AND pages? Or is adding it in separate places the right way to go?

    If so, can you advise which file I need to add code to in order for breadcrumbs to show up on my posts?

    Finally, to style them, do I just need to add the following to my css (or is it a different class)?

    .breadcrumbs {
    <style>
    }

    Many thanks
    Dom

    In forum: Virtue Theme
    #233310

    The css is not working because you’re using the simple mobile header. There isn’t a way to get the simple mobile header on desktop without coding this into a child theme. Try disabling the simple mobile header from your theme options and keep the css enabled. Let me know how it works for you.

    Hannah

    #233121

    I took off the whole menu. If I go and activate a child theme. It still says that I have no menu on the dash board. But on the child theme there is a menu, the one from virtue. I am trying to understand. so it is to do with the dashboard not Virtue?

    #232571

    Hey,
    I don’t suggest you do this, but since you feel comfortable editing the php hopefully that means you know JS as well.

    JS files are not templates file and you don’t treat them the same way at all.

    You have to enqueue your js files through a custom function in your child theme functions files: https://developer.wordpress.org/reference/functions/wp_enqueue_script/

    You need to remove the classes from your custom header template so that it doens’ interfere with the core theme JS that is designed to power the header which will mean you need to write custom css for your custom header from the ground up. Then you need to enqueue your own js file for your child theme that will run your sticky header however you are intending to run it.

    Ben

    #232563

    You guys helped me with some custom functions a while back. I’ve been placing them in the parent Virtue theme for years but I finally decided to try out the child theme created by Kadence Themes.

    Unfortunately one function works but the other doesn’t.

    custom_woocommerce_archive_title_link_start works but custom_kad_woocommerce_image_link_open doesn’t.

    Any insight would be appreciated. Thanks in advance!

    function custom_shop_functions(){

    function custom_kad_woocommerce_image_link_open() {

    global $product;

    if($product->product_type == 'external') {

    $link = $product->get_product_url();

    } else {

    $link = get_the_permalink();

    }

    echo '<a href="'.esc_url( $link).'" class="product_item_link product_img_link">';

    }

    add_action( 'woocommerce_before_shop_loop_item_title', 'custom_kad_woocommerce_image_link_open', 5 );
    remove_action( 'woocommerce_before_shop_loop_item_title', 'kad_woocommerce_image_link_open', 5 );

    function custom_woocommerce_archive_title_link_start() {

    global $product;

    if( $product->product_type == 'external' ) {

    $link = $product->get_product_url();

    } else {

    $link = get_the_permalink();

    }

    echo '<a href="'.esc_url( $link ).'" class="product_item_link product_title_link">';

    }

    add_action( 'woocommerce_shop_loop_item_title', 'custom_woocommerce_archive_title_link_start', 7 );
    remove_action( 'woocommerce_shop_loop_item_title', 'virtue_woocommerce_archive_title_link_start', 7 );

    }

    add_action('init', 'custom_shop_functions');

    #232537

    I believe the only way to achieve this is to use a child theme. Are you currently using one? https://www.kadencewp.com/child-themes/

    Hannah

    #232526

    There isn’t a built-in function to adjust that. Are you currently using a child theme?

    Hannah

    #232492

    I followed the advice here:

    but nothing changed.

    Do I need to edit the css somehow (I have never done this). I am using a child theme.

    #232266

    Your child theme is overriding the template for single posts. It’s not using the current action calls (although they will be correct in the next update) so that is why the posts are not working.

    Because custom post types don’t have the same meta box options that you can get in normal post types we’ve unhooked the check for the post head options from custom post types. That created an issue where if you had set the blog post default to image it would show on custom post types.

    That “issue” you were counting on. But to make the whole thing better I’m adding the custom post type settings so that you can turn on the featured image and the setting it seperate from blog posts.

    Ben

    #232104

    Hey,
    What version of the theme are you using?

    Also, that notice is saying you are using a child theme, you control child theme templates are you overriding templates in your child theme? If so you need to update them.

    Ben

    #232103

    Hi ,

    I have upgraded wordpress and woocommerce latest version in my site.

    Now woocommerce saying below error message

    Your theme (Virtue Premium Child Theme) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce.

    Please check and help asap.

    #232086

    I did.
    In the parent theme, the featured image is shown in a standard blog post but not in a custom post type.

    In the the child theme, the featured image is neither shown in the custom post types nor in the standard blog posts.
    https://signalwald.ch/helloworld/

    So I guess before looking into the custom types, I should get the standard blog posts fixed. I hope this will solve the problem with the other types as well.
    I don’t see what could have affected the standard blog posts. Any idea what file is most likely to cause this based on my child theme files?

    Screenshot-2019-07-30-at-18-30-58

    #232073

    Hmm, what have you added to your child theme? Have you tested by activating the parent theme to see if this setting works?

    Hannah

    #232027

    Hello,

    Since the last update (not sure if WP or template as I updated both at the same time), the featured images are not shown anymore in my child-theme -> example. I’m only using custom post types but I quickly created and previewed a standard post, which also doesn’t display the featured image. Any hint what I could do in order to investigate and solve this?

    Thanks

    #231791

    Hi,

    I have just migrated from using a normal WP theme to using Elementor Pro + Hello Child Theme. I have bought your membership package for its excellent Woocommerce support, however I don’t get the expected behaviour on the product categories pages in that they don’t filter and display the chosen catergory only.

    Please see and then click on one of the categories – an unfiltered product page is all I can seem to achieve.

    If I use the default Woocommerce page it works correctly (but obviously does not look like I want it to).

    How do I make this page display the filtered product list including a title at the top showing the category name?

    I am happy to send you access to my WP admin if it helps…

    Kind regards
    Paul

    #231750

    Hi-

    I know this is an option for Virtue, but is there a way to have the logo and menu centered with the menu underneath in Pinnacle?

    We’re not using the shrink header or transparent header option.

    I would normally switch to Virtue, but there’s been a lot of customization in our child theme with Pinnacle.

    Thank you very much as always!

    #231512

    In your child theme functions.php file add this:

    <?php
    function my_custom_wp_pagenavi() {
      global $wp_query, $wp_rewrite;
      $pages = '';
      $max = $wp_query->max_num_pages;
      if (!$current = get_query_var('paged')) $current = 1;
      $args['base'] = str_replace(999999999, '%#%', get_pagenum_link(999999999));
      $args['total'] = $max;
      $args['current'] = $current;
      $args['show_all'] = true;
      $total = 1;
      $args['mid_size'] = 3;
      $args['end_size'] = 1;
      $args['prev_text'] = '«';
      $args['next_text'] = '»';
     
      if ($max > 1) {
      	echo '<div class="scroller-status"><div class="loader-ellips infinite-scroll-request"><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span><span class="loader-ellips__dot"></span></div></div>';
       	echo '<div class="wp-pagenavi">';
       }
     	if ($total == 1 && $max > 1)
     		echo paginate_links($args);
     	if ($max > 1) {
     		echo '</div>';
     	}
    }

    Then in your child theme copy archive.php into it, replace this section:

    if(function_exists('kad_wp_pagenavi')) { 
      kad_wp_pagenavi();   
    }

    to this:

    if(function_exists('my_custom_wp_pagenavi')) { 
      my_custom_wp_pagenavi();   
    }

    Ben

    #231502

    Thanks for the information. What would I need to add to the child theme to display all pages, with no ellipses, please?

    #231493

    Hey,
    There isn’t an option for this within WordPress pagination functions which is what the theme is using. I also don’t know of any plugin that adds an input. It would be possible with some custom child theme to make all the numbers show.

    Ben

Viewing 20 results - 1,001 through 1,020 (of 6,404 total)