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

Trying to create new Templates.

Home / Forums / Virtue Theme / Trying to create new Templates.

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
January 15, 2018 at 10:11 am

I would like to create 2 new templates from current templates. I have set up a Child Theme under Virtue_Premium.

1. Create a new Fullwidth template and add code to between the header and top of the page. I copied the page-fullwidth.php file and copied it to my Child them and renamed it to bcha_home_full.php. I added this line <?php echo do_shortcode(“[insert page=’news-articles’ display=’content’]”); ?> just above this line in the file <div id=”content” class=”container”>. I also change the Template name, * Template Name: Member Home Full. This seemed to work ok except the Sidebar is showing when I select the template “Member Home Full”. I guess I don’t understand how “get_template_part(‘templates/content’, ‘page’);” in the Virtue theme.

2. Create a new Template that Excludes the normal Header and Footer. I made a copy of the same file page-fullwidth.php and copied it to my Child them and renamed it to blank.php.

I rename the template to be “Blank” and just commented out the following lines…
//do_action(‘kadence_page_title_container’);
//do_action(‘kadence_page_before_content’); ?>
//do_action(‘kadence_page_footer’);
After this change and selecting the “Blank” template in the page I still see the Header and the Footer. Again I guess I don’t understand how “get_template_part(‘templates/content’, ‘page’);” in the Virtue theme.

Can you point me in the right direction please…

Marty

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