Support » Plugins and Hacks » HTML Page Sitemap » Why are WP added default classes removed?

Why are WP added default classes removed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Angelo Mandato


    The wp_list_pages function is intended to be used outside of the content area, in the header, footer or sidebar. Many themes use these classes added by wp_list_pages to apply styling for any one or all of those areas. Since this plugin puts the unordered list in the content, it should not take on such styling. In our testing, with some themes it made it look like the sidebar was accidentally placed in the page content. Removing the class made the unordered list look like other unordered lists in the page content.

    Is there a reason you want those specific classes applied?

    We came across an instance to add borders for some selected items in the list, when sitemap is used as content. Removing class makes sense. What do you think about replacing it with class=”sitemap_class1 sitemap_class2…”?

    Btw, this is a simple yet powerful shortcode.

    Thank you

    Plugin Author Angelo Mandato


    I think it’s a good idea to pass in the class in the shortcode. I’ve added it to my TODO list.

    In the short term, you can easily wrap the list in a span or a div with a class or ID to style all the children elements. e.g.

    <span id="page_list">[html-sitemap]</span>


    #page_list ul {
    #page_list ul li {

    yes a simple “class” or “id” identifier in the shortcode would be awesome. Even if you injected your own class upon using the ul. like <ul class=”html-sitemap”>

    Plugin Author Angelo Mandato


    Yes, class and id are good ideas and they are on my TODO list.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why are WP added default classes removed?’ is closed to new replies.
Skip to toolbar