Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old May 28th, 2013, 06:40 AM
digitalcow digitalcow is offline
Join Date: Jun 2010
Posts: 494
Default Hiding the sidebar on products

Wondering if anyone could offer me a little php advice. Eric helped me with this previously but don't want to trouble him again. I am trying to hide the sidebar on product pages and only show on categories pages. The template my store page uses is below

PHP Code:
/* Template Name: With Sidebar (Left) */
<?php get_header
(); ?>

<!-- Title -->
<div class="box pt20 mainbox">
    <!-- Title -->
    <!-- Promo text -->
    <?php $promo get_post_meta($post->ID"_promo"$single false);?>
    <?php if(!empty($promo[0]) ):?>
       <div class="calloutcontainer">
            <div class="container_12">
                <div class="grid_12">            
                    <?php echo do_shortcode($promo[0]);?>
    <?php endif?>
    <div class="headertext">
        <?php the_title() ?>
        <?php $headline get_post_meta($post->ID"_headline"$single false);?>
        <?php if(!empty($headline[0]) ):?>
            <span><?php echo $headline[0?></span>
        <?php endif?>
    <div class="clearnospacing"></div>
    <div class="container_12">
        <aside class="grid_3_no_margin sidebarleft alignleft">
            <?php generated_dynamic_sidebar() ?>
        <div class="grid_9 alignright omega">
            <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
                <?php the_content(); ?>
            <?php endwhile; ?>    
        <div class="clear"></div>

<?php get_footer(); ?>
Have tried changing various bits but I either break the page or nothing happens

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Products are pushing sidebar to bottom of page. outdoorcampingshops Problems 4 January 14th, 2013 04:16 PM
No sidebar on homepage extrazin Questions 1 November 18th, 2011 11:24 AM
Hiding affiliate links in wordpress amindana Questions 4 May 10th, 2011 08:39 AM
hidden categories not hiding in new plugin version badm00n Problems 2 January 16th, 2011 12:36 PM

All times are GMT -5. The time now is 02:23 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.