Forums

Split blogroll/links in two? (6 posts)

  1. spajk
    Member
    Posted 5 years ago #

    Hi! Iam trying to create my own theme.
    I have loads of friends that i want to link to and great information that i want to link to.

    I want this split in two - 50% / 50 % on both sides.
    You have the information in the center than the links on the sides.

    Is this possible? if so, where can i read about it. I'v been looking at codex but i cant find anything.

    please help!

  2. Ryan Fitzer
    Member
    Posted 5 years ago #

    So are you trying to make a three column layout?

  3. spajk
    Member
    Posted 5 years ago #

    exactly!

  4. Ryan Fitzer
    Member
    Posted 5 years ago #

    Here is a page from the codex explaining how to list individual link sections.

    http://codex.wordpress.org/Template_Tags/get_links

    You supply the link id to each one to specify which links to show.

  5. spajk
    Member
    Posted 5 years ago #

    but will it split it up 50/50 automatic?

  6. Ryan Fitzer
    Member
    Posted 5 years ago #

    No. You'll have to plan ahead what link sections your blog will have and then have two different sidebar.php files. For example your left sidebar could be named "sidebar-left.php" and could include just the "Friends" links. The right sidebar could be named "sidebar-right.php" and include whatever other link sections you like to have (recent posts, pages, etc...). This way your left sidebar could be very long without pushing down the other link sections you want to have. You include each sidebar like so:

    <?php include (TEMPLATEPATH . '/sidebar-left.php'); ?>
    <?php include (TEMPLATEPATH . '/sidebar-right.php'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic