How do I change the markup for BlogRoll? (4 posts)

  1. erikcw
    Posted 10 years ago #


    Can anyone tell me how I can change the markup for the BlogRoll/links. I am using the default template. sidebar.php just has Get_links_list() with no markup around it...


  2. skippy
    Posted 10 years ago #

    What markup do you want to add?

    The get_links_list() documentation reveals that the tag itself only supports a single parameter, "order".

    You could use wp_get_links() to control your link list a little more.

    But without knowing what you hope to achieve, we can't provide anything more specific.

  3. erikcw
    Posted 10 years ago #

    For example. This function outputs the BlogRoll. More specifically < h2>BlogRoll< /h2>. I want to remove the h2 tags from BlogRoll and the other link categories...

  4. skippy
    Posted 10 years ago #

    The h2 is part of the get_links_list() template tag. To replicate the functionality, but style it the way you want, use wp_get_links(). In particular, see the second example for wp_get_links().

Topic Closed

This topic has been closed to new replies.

About this Topic