WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Displaying links list left to right instead of vertically? (4 posts)

  1. anonymousmousse
    Member
    Posted 6 years ago #

    Hello,
    I have a separate links page on my site, and several links categories with a lot of links in each. I want to display my links left to right instead of in a long vertical list. I did this in prior versions of WP by having the link manager place a '.' in between links instead of <ul></li> etc, which displayed like this:

    Link Category
    Link . Link . Link . Link . Link . Link

    Next Category
    Link . Link . Link . Link . Link . Link (etc)

    I can't find a way of doing this on 2.3 however. I've tried different template tag settings but whatever I do it stays as a vertical list. Can anybody help?? Many thanks!

  2. shadow
    Member
    Posted 6 years ago #

    Wherever your links are and whatever class it has for this particular list, just add the following to your CSS to apply to that class:

    display: inline;
    list-style-type: none;
  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Alternatively, if you use the correct parameters in your call to wp_list_bookmarks, it won't output UL's and LI's and such.

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

    Pay special attention to the before and after and between parameters. You'll also want to turn off categorize and set title_li to empty.

  4. anonymousmousse
    Member
    Posted 6 years ago #

    Shadow: that worked fine. Thanks very much! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic