WP Sitemap Page
[resolved] Heading colour and eliminating Posts heading (5 posts)

  1. Malae
    Posted 3 years ago #

    I am using the twenty eleven theme with a black background. The plugin has picked up my font colour, which is great, but the main header: Pages and the bullets are white. If possible, can you give any pointers on how to change their colour?

    The site is has only pages i.e. no posts. The plugin generates a sitemap which works fine, except that at the bottom it has a heading Posts by category, which serves no purpose. I tried commenting out various lines in the PHP file without success. How can I prevent this heading from showing?


  2. Malae
    Posted 3 years ago #

    I finally was able to remove the Posts by category heading, by deleting the text inside the brackets on the line $return .= '<h2 class="wsp-posts-list">'.__('Posts by category', 'wp_sitemap_page').'</h2>';

    Would still appreciate guidance on how to change the Page heading and bullets colour.

  3. Tony Archambeau
    Plugin Author

    Posted 3 years ago #

    There is a new version of this plugin (version 1.0.4) that fix the problem of the "posts by category" title.
    It is possible to customize the way the title or the bullet are displayed. Each element has a specific CSS class attribute to customize it. You can change the color of a title by using such a code in your CSS file:


    I didn't check such a code, but this should works fine.

    Hope that help. :)


  4. Malae
    Posted 3 years ago #

    New version works fine for pages, except for the colour coding.

  5. Malae
    Posted 3 years ago #

    The above code didn't work, but to style the colour, on the page with the shortcode can use:
    <div style="color: #123456;>[wp_sitemap_page]</div>
    The colour can be chosen from any HTML number as in the example, or any of the accepted CSS colour names.
    Works fine with very good overall result!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Sitemap Page
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic