Forums

[resolved] How can I move "pages" and "categories" above "links"? (5 posts)

  1. Asecondforever
    Member
    Posted 4 years ago #

    I'm using the Fasttrack theme and have been able to make some tweaks to the sidebar, but can't figure out how to move "Categories" and "Pages" above "Links." (Links appear to be in index.php, while the other items are in sidebar.php, with nothing clearly referencing their positioning in style.css - though I could easily be wrong.) I guess I'm not clear on what in the code determines their positions relative to one another. Here's the test blog where I'm trying to figure it out:

    http://smalltownproject.org/wptest/wordpress/

    I haven't found anything on this in the codex. Is it there somewhere? I'm a total novice at this so explaining any procedure like your talking to a 5 year old could be a good idea. :) Thoughts?

  2. Ajay
    Member
    Posted 4 years ago #

    I haven't seen the source code for the theme, but you say that Links appear in index.php and others in sidebar.php, then you may have to do more detailed editting.

    You will need to move the code for Links into the sidebar.php from index.php where you need them to appear.

  3. Kafkaesqui
    Moderator
    Posted 4 years ago #

    I've just looked at the theme and was able to move Page and category listings above the links just by taking this in index.php:

    <?php get_sidebar(); ?>

    and moving it above:

    <h2><?php _e('Links'); ?></h2>
    <ul><?php get_links('-1', '<li>', '</li>', ' '); ?></ul>

    Another option is to move the two Links lines into sidebar.php where you want them to display in the sidebar.

  4. Asecondforever
    Member
    Posted 4 years ago #

    Ah... Thanks Kafkaesqui and Ajay. Kafkaesqui, that's simpler than I had expected, but makes sense now that I see it! I'll get on that shortly.

  5. Asecondforever
    Member
    Posted 4 years ago #

    Worked like a charm! Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic