WordPress.org

Ready to get started?Download WordPress

Forums

My Sidebar Vanished - Help me please? (3 posts)

  1. moseleyworld
    Member
    Posted 6 years ago #

    I'm using the Integral theme at Moseleyworld.com. I was trying to make a change (adding code for Google Adsense ads)to sidebar.php and POOF, the sidebar vanished.

    I'm sure I deleted something minor that caused this. Any ideas?

    <div id="sidebar">

      <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
      <!--<li class="box">
      <h2>
      <?php _e('Categories'); ?>
      </h2>
      <?php wp_list_cats('optioncount=0&hierarchical=1'); ?>

    -->
    <li class="box">
    <h2>Categories</h2>
    <?php
    if (function_exists ('cattag_tagcloud') ) { echo '<ul class="tagcloud">' . cattag_tagcloud() . ''; }
    ?>

    <li class="box">
    <h2><?php _e('Calendar'); ?></h2>

      <?php get_calendar(); ?>

    <!--<h2>
    <?php _e('Monthly'); ?>
    </h2>

      <?php wp_get_archives('type=monthly'); ?>

    -->

    <li class="box">
    <h2>Recent Comments</h2>

      <?php get_recent_comments(); ?>

    <?php get_links_list(); ?>
    <li class="box">
    <h2>Meta</h2>

    <li class="box">
    <h2>Feed on</h2>

    </div><!-- CLOSE sidebar-->
    <div class="clear"></div>
    </div><!-- CLOSE content-->`

  2. moseleyworld
    Member
    Posted 6 years ago #

    maybe this will work better to show you the code.

    <div id="sidebar">
    <ul>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
      <!--<li class="box">
        <h2>
          <?php _e('Categories'); ?>
        </h2>
        <ul>
          <?php wp_list_cats('optioncount=0&hierarchical=1');    ?>
        </ul>
      </li>-->
    	<li class="box">
      <h2>Categories</h2>
      <?php
      if (function_exists ('cattag_tagcloud') ) { echo '<ul class="tagcloud">' . cattag_tagcloud() . '</ul>'; }
      ?>
      </li>
      <li class="box">
      <h2><?php _e('Calendar'); ?></h2>
      <ul>
      <?php get_calendar(); ?>
      </ul>
        <!--<h2>
          <?php _e('Monthly'); ?>
        </h2>
        <ul>
          <?php wp_get_archives('type=monthly'); ?>
        </ul>-->
      </li>
      <li class="box">
        <h2>Recent Comments</h2>
        <ul>
        <?php get_recent_comments(); ?>
        </ul>
      </li>
      <?php get_links_list(); ?>
      <li class="box">
    		<h2>Meta</h2>
    		<ul>
    			<?php wp_register(); ?>
    			<li><?php wp_loginout(); ?></li>
    			<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    			<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    			<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
    			<?php wp_meta(); ?>
    		</ul>
       </li>
      <li class="box">
        <h2>Feed on</h2>
        <ul>
          <li class="feed"><a title="RSS Feed of Posts" href="<?php bloginfo('rss2_url'); ?>">Posts RSS</a></li>
          <li class="feed"><a title="RSS Feed of Comments" href="<?php bloginfo('comments_rss2_url'); ?>">Comments RSS</a></li>
        </ul>
      </li>
    </ul>
    </div><!-- CLOSE sidebar-->
    <div class="clear"></div>
    </div><!-- CLOSE content-->
  3. moseleyworld
    Member
    Posted 6 years ago #

    Am I asking this the wrong way?

Topic Closed

This topic has been closed to new replies.

About this Topic