WordPress.org

Forums

Re-arranging Links in Blogroll (3 posts)

  1. sangah93
    Member
    Posted 7 years ago #

    I have a lot of links on my blogroll and I even had to make a separate page for them.
    However, I'd like them on my sidebar but I don't want it to take up too much space. So, I'd rather have it like this, for example (the commas aren't really necessary):

    BLOGROLL TITLE
    Link, Link, Link, Link, etc.

    Instead of this:

    BLOGROLL TITLE
    Link
    Link
    Link
    Link
    etc.

    Can anyone tell me how to do this?

  2. lelion
    Member
    Posted 7 years ago #

    You should search in your WordPress files/WP Theme files for where happens the adding of:

    <ul>
      <li>link...</li>
      <li>another link...</li>
      <li>yet another link...</li>
    </ul>

    Specifically, the LI elements are those that do the 'trick'. The blogroll is usually an unordered list (UL). If you remove the LI/UL elements, you can make the list whatever you like - comma separated list of links, for example, without new line breaks after each link! :-)

    Other option would be to style JUST the blogroll specifically, using CSS. You can make each link 'float', and then they will not be anymore on new lines each of them...

    But for the fact, where happens exactly the adding of the LI elements, I am not sure...

    Hope someone else will be of more use than me;-)

  3. Kafkaesqui

    Posted 7 years ago #

    See:

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

    As lelion notes, it's the <li> tags for the unordered list that cause each bookmark to appear on a new line. But see the info at the link above on the various before/after parameters you can change to your desire.

Topic Closed

This topic has been closed to new replies.

About this Topic