WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Buro Sidebar Widgets Question (2 posts)

  1. twilitegxa
    Member
    Posted 2 years ago #

    I am using the Buro theme from WooThemes and I wanted to know if anyone knows how to set up the sidebar page so that the sidebar widget doesn't show up on pages using the Feedback or Blog template? It has the code that stops it from showing on Full Width templates, but I cannot figure out how to disable it from Feedback and Blog templates.

    <?php
    	// Don't display sidebar if full width
    	global $woo_options;
    	if ( $woo_options[ 'woo_layout' ] != "layout-full" ) :
    ?>
    <div id="sidebar">
    
    	<?php if ( woo_active_sidebar( 'primary' ) ) : ?>
        <div class="primary">
    		<?php woo_sidebar( 'primary' ); ?>
    	</div>
    	<?php endif; ?>    
    
    </div><!-- /#sidebar -->
    
    <?php endif; ?>

    Also, is there a way to only display certain sidebar widgets on certain pages? Such as, maybe on my "Lifestyles" page, only display my sidebar widget named "Lifestyles"? Can anyone tell me how I might be able to do this? Here is a url to my site in question: http://artifex-design.co.uk/clients/kidayspa/

  2. twilitegxa
    Member
    Posted 2 years ago #

    I found a way to do it!

    <?php if(is_page(array ('lifestyles', 'fabulous-facials', 'massage-and-musclease', 'body-rituals', 'detox-and-body-cleansing', 'complete-face-and-body', 'holistic-heaven', 'hand-and-nail-care', 'sole-care', 'bare-essentials', 'packages', 'spa-day', 'spa-packages'))) { ?>
    <h3>Treatments</h3>
    <hr />
    <?php wp_nav_menu( array('menu' => 'Lifestyles' )); ?>
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.