• Resolved add.redford

    (@addredford)


    Hi, I simply want to display the links without a title of “pages” being displayed. Is this possible? Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • @addredford

    Go to wp-sitemap.php and comment out lines 629 starting if ($is_title_displayed==true) { to 631 ending }

    • This reply was modified 5 years, 8 months ago by Malae.
    Thread Starter add.redford

    (@addredford)

    Hi Malae and thanks for the suggestion! Unfortunately that didn’t work for me.

    Just to clarify, are you talking about wp-sitemap-page.php in the plugins folder?

    Hi,

    Sorry, I missed out ‘page’ in the file name. Yes, it is the wp-sitemap-page.php file. It will work, but sometimes commenting out code in a PHP file is tricky. I had a similar problem with this line many years ago because ‘Pages’ displays with the themes default font colour, but I had a different colour for the text on my pages. I added code to that line to change the colour of ‘Pages’.

    There is an easier way that you can try: go to line 636 and change ‘Pages’ to ” i.e just remove the word Pages – you can leave the ” with a space.

    If you still have trouble let me know and advise, whether I can contact you via your site contact page.

    Thread Starter add.redford

    (@addredford)

    Hi Malae! Thank you for that tip, it worked for me ??

    I had the thought that the next update of the plugin may override this so I decided to use this CSS code in my Additional CSS pane to simply hide the title altogether:

    h2.wsp-pages-title { display: none; }

    Now on to the next thing on the to-do list! Many thanks for all of your help ??

    I don’t manage to display some pages from the sitemap. The ID number doesn’t work for me here…is there something I did wrong or didn’t do right?
    Thanks,
    Raija

    @raimatin

    This issue was resolved. Your issue is different and you should open a new support request.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove title “pages” on sitemap page’ is closed to new replies.