New Landing How can we help? Themeforest Theme Support Dante hide specific pages from sitemap element

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #330440
    WEswift
    Member
    Post count: 234

    My SEO company would like me to hide specific pages from my sitemap generated through the theme element: https://www.parcprovence.com/site-map/

    They don’t want to see it here but I believe they don’t want Google to index these pages as well. I thought that you could deindex through Google Search Console but they said this is only temporary.

    Please advise.

    Thanks!

    #330549
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Check this solution that was provided in this topic.
    http://www.swiftideas.com/forums/topic/exclude-pages-in-sitemap-from-search-site-result/

    Let us know if it worked.

    -Rui

    #330552
    WEswift
    Member
    Post count: 234

    Hi Rui – I’m a little hesitant to use a plugin that was last updated a year ago and is untested with my version of WordPress. Is there another option you can think of?

    #330554
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I was talking about the suggested code, sorry for didn’t explain it better.

    Please open to edit shortcodes.php at /dante/swift-framework/
    Find this code:-

    
    $page_list = wp_list_pages("title_li=&depth=$depth&sort_column=menu_order&echo=0");  
    
    Change to :-
    $page_list = wp_list_pages("title_li=&depth=$depth&sort_column=menu_order&echo=0&exclude=3,7");  // please change the 3 and 7 with your page ids.

    -Rui

    #331235
    WEswift
    Member
    Post count: 234
    This reply has been marked as private.
    #331265
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Alison,

    Please see this link – https://kb.yoast.com/kb/sitemap-shows-excluded-posts-pages/

    Hope that helps.

    – Ed

    #331266
    WEswift
    Member
    Post count: 234

    Hi Ed – Thank you for all of your help on this..that did it!

    #331268
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    No problem, happy to help – glad that sorted it 🙂

    – Ed

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.