January 2, 2019 at 1:12 pm
Hello Team Kadence,
I am trying to create a new template based off the fullwidth template so I started by copying the fullwidth template and renaming it (I just added a 2 to the name for testing purposes). My code is:
<?php
/* Template Name: Fullwidth2 */
do_action( 'kadence_page_title_container' );
?>
<div id="content" class="container <?php echo esc_attr( virtue_container_class() ); ?>">
<div class="row">
<div class="main <?php echo virtue_main_class(); ?>" id="ktmain" role="main">
<?php
do_action('kadence_page_before_content'); ?>
<div class="entry-content" itemprop="mainContentOfPage">
<?php get_template_part('templates/content', 'page'); ?>
</div>
<?php
/**
* @hooked virtue_page_comments - 20
*/
do_action('kadence_page_footer');
?>
</div><!-- /.main -->
When viewing via wp-admin, it looks like it should – page title options, no other settings/metaboxes (it matches what the Fullwidth template looks like). However, on the frontend, a sidebar appears (which is not like the Fullwidth template).
Is there a filter or hook I need to add that says don’t use a sidebar for this template? Thanks!