Register or log in:



Hot Tags

Blog Oh! Blog Forums » Wordpress Themes

B&W: Sidebar

(4 posts)

  1. Sam
    Member

    I have downloaded the Black and White theme and am futzing around with it on an internal site.

    I am confused as to modify the sidebars. I see sidebar.php and can modify that as needed. But individual pages seem to have a different sidebar. My blogroll displays on index.php, but not on a specific post's page.

    Where do I go to modify what displays on the sidebar of a specific post's page?

    Posted 6 months ago #
  2. aestival
    Member

    Oh. I unexpired trouble when I was new at PHP.

    This isn't a very complicated solution:

    In the code, for example, the lsidebar.php,

    `<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <p>You are currently browsing the /"><?php echo bloginfo('name'); ?> weblog archives
    for <?php the_time('F, Y'); ?>.</p>`

    The <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> is causing this. If that page is a monthly archive, "You are currently browsing the (Blog Name) weblog archives for (date)." will show.

    You don't want that to show?

    Delete the <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> to make it show on EVERY page, or go even further and delete the whole part of code:

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    			for <?php the_time('F, Y'); ?>.</p>

    I hope I helped. Feel free to respond if you have any troubles.

    Posted 6 months ago #
  3. aestival
    Member

    unexperienced*

    Stupid spellcheck :P

    Posted 6 months ago #
  4. Sam
    Member

    That doesn't seem to be what I am seeing. On my main page I have the Meta area shown in the left sidebar.

    When I view a post at its specific address, the Meta area is not in the left sidebar.

    In the left sidebar the code is:

  5. <h2>Meta</h2>
      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

{ A Forum of Blog Oh! Blog }