WordPress.org

Ready to get started?Download WordPress

Forums

How can I move my "Categories" up the sidebar? (7 posts)

  1. jmkeuning
    Member
    Posted 7 years ago #

    I cannot figure out how to move the Categories section up the sidebar. I want it under the "About This Site" box. Any thoughts are appreciated. The themes is Connections.

    http://www.bunchafreaks.com

  2. jmkeuning
    Member
    Posted 7 years ago #

    I am getting some where.

    I edited sidebar.php and cut and paste the Categories section so it is now at the top of the sidebar stuff.

    However, it appears that "Links" is on index.php - is this right? Here is that code:

    <div id="sidebar">
    <h2><?php _e('About the Site:'); ?></h2>

    • <?php bloginfo('description'); ?>

    <h2><?php _e('Links'); ?></h2>

      <?php get_links('-1', '
    • ', '
    • ', ' '); ?>

    <?php get_sidebar(); ?>

    I do not know about any of this stuff - I am assuming that get_sidebar inserts all of the sidebar stuff so I cannot moke the Links box down into the sidebar?

  3. Adam Brown
    Member
    Posted 7 years ago #

    If you want to make your life easier, install the Sidebar Widgets plugin. Most recent themes work well with this plugin, although I don't know about Connections.

    Then, you can easily move things in your sidebar around just by going to your admin menu (presentation » widgets).

  4. Samuel B
    moderator
    Posted 7 years ago #

    Paste your entire sidebar.php code at:
    http://wordpress.pastebin.ca
    then post the link back here with the specific order you want things to show up on your sidebar.

  5. jmkeuning
    Member
    Posted 7 years ago #

    http://wordpress.pastebin.ca/424497

    Here is how I want it:

    About
    Categories
    Links
    Search
    ...

    the rest does not matter...

    THANKS!

  6. hanilovesme
    Member
    Posted 7 years ago #

    Hi,

    I would follow adamrbrown's advice and take a look at the Sidebar Widgets plugin. It will let you drag and drop your sidebar items really easily once you have it set up.

    But to address your question, try copy-pasting the "about the site" and "links" (leaving the div where it is) code into sidebar.php, into the location where you want them to appear.

  7. jmkeuning
    Member
    Posted 7 years ago #

    Thanks folks. I changed my theme to one that can handle the Sidebar Widgets. Perfect.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.