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

Sidebar.php in Child Theme

Home / Forums / Virtue Theme / Sidebar.php in Child Theme

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
April 17, 2015 at 6:35 pm

Hi,

I have used virtue_premium_vendor_child theme and virtue premium theme. I have added additional code in the templates/sidebar.php in the original theme file. I want move the sidebar.php from the theme to child theme so that when I update the original theme, I do not need to copy the customization again. Is this possible ?

In the templates/sidebar.php, I have used the below custom code

<?php
if( get_post_type() == ‘recipe’ ) {
dynamic_sidebar(‘sidebar-primary-recipe’);
} else {
dynamic_sidebar( kadence_sidebar_id() );
}

Thanks.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.