This topic has 1 reply, 1 voice, and was last updated 7 years by ThrewTheNevR.
-
Author
-
April 6, 2017 at 04:36 #157765ThrewTheNevRParticipant
im having an issue setting only the buddypress activation and register pages to full width,
the code below works but makes all buddypress pages full width any ideas? a buddypress.php file was created for this code and placed into the child theme, it works but i just want those two pages full width.
<?php
/**
* Template Name: Full-width
*
* Description: Template withour sidebar
*
* @package WordPress
* @subpackage Kleo
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Kleo 1.0
*/
get_header(); ?>
<?php
//create full width template
kleo_switch_layout(‘no’);
?>
<?php get_template_part(‘page-parts/general-title-section’); ?>
<?php get_template_part(‘page-parts/general-before-wrap’); ?>
<?php
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( ‘content’, ‘page’ );
?>
<?php get_template_part( ‘page-parts/posts-social-share’ ); ?>
<?php if ( sq_option( ‘page_comments’, 0 ) == 1 ): ?>
<!– Begin Comments –>
<?php
if ( comments_open() || get_comments_number() ) {
comments_template( ”, true );
} ?>
<!– End Comments –>
<?php endif; ?>
<?php endwhile;
endif;
?>
<?php get_template_part(‘page-parts/general-after-wrap’); ?>
<?php get_footer(); ?>
April 6, 2017 at 14:14 #157781ThrewTheNevRParticipantFixed it. I totally overlooked the buddypress options under theme options
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.