The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

removing sidebar items (2 posts)

  1. drparlayy
    Posted 7 years ago #

    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
    $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; ?>
    <?php } ?>

    <!-- widget -->
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left') ) : ?>

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


      <?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 */?>

    <?php endif; // endif widget ?>

  2. esmi
    Forum Moderator
    Posted 7 years ago #

    Try placing a copy of your sidebar in the WordPress pastebin.

Topic Closed

This topic has been closed to new replies.

About this Topic