Support » Themes and Templates » How do I change the markup for BlogRoll?

  • Hi,

    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…


Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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…

    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().

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I change the markup for BlogRoll?’ is closed to new replies.