• Hello, I thankfully was taught how to get rid of sidebar items earlier in this forum by doing this:

    Placing these tags
    <?php /*?>whatever you want to hide is here<?php */?>

    However, I still have some links on the sidebar that I am not sure where to place those tags, my stylesheet is below, your help will be greatly appreciated!

    And my website is conchowebdesign.com

    <div id=”sidebar”>
    <?php /*?><p id=”font-resize”>
    A A+ A++
    </p><?php */?>

    <?php // if there are subpages of the current page,they will be listed here
    if($post->post_parent)
    $children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0&sort_column=menu_order”); else
    $children = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0&sort_column=menu_order”);
    if ($children) { ?>

    <!– subpages –>
    <div class=”widget”><h4>Subpages</h4>

      <?php echo $children; ?>

    </div>
    <?php } ?>

    <!– widget –>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar_left’) ) : ?>
    <h4>Categories</h4>

      <?php wp_list_categories(‘title_li=0&categorize=0’); ?>

    <h4>Archives</h4>

      <?php wp_get_archives(‘type=monthly&limit=10’); ?>

    <?php endif; // endif widget ?>
    <!– widget –>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar_second’) ) : ?>
    <div id=”meta” class=”widget”>
    <?php /*?><h4>Blogroll</h4><?php */?>

      <?php wp_list_bookmarks(‘title_li=0&categorize=0’); ?>

    <?php /*?><h4>Meta</h4><?php */?>

    </div>
    <?php endif; // endif widget ?>
    </div>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘removing sidebar items’ is closed to new replies.