WordPress.org

Ready to get started?Download WordPress

Forums

Putting Content First (8 posts)

  1. Selif
    Member
    Posted 6 years ago #

    I recently had occasion to look at my blog in lynx and noticed that the theme I'm using, http://webgazette.co.uk/wordpress-themes/chameleon/ loads the sidebar before the main content. It results in posts being three screens down under the sidebar. I've been trying to rework it so that the posts will load before the sidebars so that it will look better in a text browser and so that SE crawlers will see the posts as early in the page as possible.

    Fortunately I've been doing this on a separate test blog because all I've managed to do so far is have the sidebar load centered directly *under* the post content. I don't doubt that I'm missing something simple but it's been driving me to distraction.

    I'd really appreciate some ideas how to get this accomplished without going the rest of the way insane.

  2. Stefanie
    Member
    Posted 6 years ago #

    Move

    <?php get_sidebar(); ?>

    down to right above

    <?php get_footer(); ?>

    in archive.php, archives.php, index.php, links.php, page.php, search.php, single.php

  3. Selif
    Member
    Posted 6 years ago #

    Tried that.

    The posts loaded first alright. However when the sidebar loaded the top of it was even with the bottom of the last post on the page.

    ...still plugging away

  4. Anonymous
    Unregistered
    Posted 6 years ago #

    Any more info on this? Google sees my entire menu before the page content.

  5. Anonymous
    Unregistered
    Posted 6 years ago #

    I have noticed that some of the available themes pay attention to this and a lot do not. Unfortunately, I picked the wrong one and my client now likes the way it looks. Google has dumped our page way down in rank compared to when we ran the default WP theme.

    On your Firefox browser, you can get a look at how Google sees your page by clicking View / Page Style / No Style.

    Now I need a tutorial on how to correct this mess. It's easy to reposition the sidebar down on the different php scripts:
    <div id="leftnav">
    <?php get_sidebar(); ?>
    </div>

    Making the sidebar show up at the top left through the use of the stylesheet is the hard part.

    Anyone been through this? Tutorials?

  6. moshu
    Member
    Posted 6 years ago #

    If you google for it - you cand find quite a few examples of 2 and 3 column design where content comes first.
    search "content first"

  7. Anonymous
    Unregistered
    Posted 6 years ago #

    I csn find them, that's easy. Understanding the differences that make this particular feature work is the hard part.

  8. Anonymous
    Unregistered
    Posted 6 years ago #

    Is this the way to get css to put the left sidebar back to the top?

    #left {
    position: absolute;
    top: 35px;
    float: left;
    width: 150px;
    margin: 5;
    padding: 5;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic