Support » Themes and Templates » unordered nested HTML

  • Is it possible to have both the <?php get_links_list() ?> and <?php get_archives() ?> not to be unordered nested HTML?

Viewing 6 replies - 1 through 6 (of 6 total)
  • whats wrong with using css?

    I suppose it’s possible, just change parts of the code for the functions (the li‘s are called in the functions, not from index.php, right?)…
    But why wouldn’t you want them to be? Would you have them as ordered lists instead, or…?

    I don’t know about get_links_list but you can forgo the default list layout in get_archives and have a custom “$before link $after”

    Same problem here. I’d really like to have the descriptions in my links list be output _under_ the links (via <br \>) instead of right beside them, just separated by a space. As far as I can see, there is no possibility to influence this behaviour through css-styles, because the complete content (output) of the list ist generated through wp_get_links_list() or get_links_list().
    Now, while I’m able to manipulate the php-code of the corresponding links.php include-file, I don’t understand php and don’t know exactly where in the code (and how) I can make the necessary changes.
    Anyone have an idea? Your help would really be appreciated (especially plug-and-play php-code-snippets 😉 )

    Thank you for the hint. In the meantime I’had found that out for myself but: It doesn’t seem to work. Whatever formatting-tag I enter in the link manager as “between” won’t be recognized. In fact, a br-tag already was default-value for the respective (and only) category linked to all my links.
    Now, I’m going to experiment with the get_links() function instead, which was referenced to in another thread with a similar problem regarding the html hardcoded into the output of the lists functions.

    get_links() works just fine and solves all of the aforementioned problems. A description of all the parameters can be found here in the WordPress Wiki.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘unordered nested HTML’ is closed to new replies.