WordPress.org

Ready to get started?Download WordPress

Forums

How difficult can it be!!! Arrrgh (2 posts)

  1. TonyWright
    Member
    Posted 8 years ago #

    I have been spending a very unhealthy amount of time trying to distribute the contents of my sidebar equally, so that there's no gaps bigger than others. I'd like to be able to juggle about things and see what's look right. But there's no point if the margins are uneven.

    I know it sounds anal, but is there a simple way?

    Inserting for a gap doesn't always work.

    Also, I'd like to know the start and end lines of an 'if this is my front page' rule.

    The sidebar is at http://www.rapnews.co.uk

    Thank you ever so much. I'm getting so frustrated. I wish there was an automated 'snap to grid' or one simple number i could define which would set the margin between each piece of sidebar content.

    (I am generally referring to the page's appearance in firefox. It looks better in IE for some reason. I'd like ot to be equaled out, in both browsers)

  2. nearlythere
    Member
    Posted 8 years ago #

    i'm not sure about your alignment problem. it looks fine on Firefox for Mac OS X.

    but, to test if it is the front page, you need the conditional tag: is_home()

    http://codex.wordpress.org/Conditional_Tags#The_Main_Page

    try testing this in sidebar:

    <?php
    if (is_home()) { ?>

    <!-- your code -->

    This is HOME

    `<?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.