New Landing How can we help? Themeforest Theme Support Dante Exclude pages in sitemap from search site result

  • This topic has 13 replies, 7 voices, and was last updated 6 years by BryceCSD.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #144084
    brebber
    Member
    Post count: 122

    Hi,
    I need to exclude some pages from the sitemap, wich you get on the search-site if your search get no results.

    Attachments:
    You must be logged in to view attached files.
    #144183
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this plugin: http://wordpress.org/extend/plugins/page-list/. Just check their documentation on how to exclude pages.

    Thanks
    Mohammad

    #144348
    brebber
    Member
    Post count: 122
    This reply has been marked as private.
    #144536
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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.
    
    

    Thanks
    Mohammad

    #144726
    brebber
    Member
    Post count: 122

    Works very well!
    Thanks!

    #144729
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

    #162897
    SmallDogCreative
    Member
    Post count: 55

    Mohammad,

    Is there a way to do this in Cardinal?

    Steve

    #162914
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @SmallDogCreative
    – Please explain your issue in detail.
    Thanks
    Mohammad

    #300829
    3lias
    Member
    Post count: 128

    Is there by now in the Theme Setting an option to exclude certain pages or do I really need to adjust the shortcodes.php files? If so does by an update the file gets overridden?

    #300847
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    No there isn’t any option, it needs the code customization.

    -Rui

    #301000
    3lias
    Member
    Post count: 128

    Ok. Thanks for the Info.

    #301003
    3lias
    Member
    Post count: 128

    If the Dante theme gets an update do I need to change/add that code again or does it not get overwritten?

    #301004
    David Martin – Support
    Moderator
    Post count: 20834

    Yes you would if not overridden inside a child theme.

    Thanks.

    #331543
    BryceCSD
    Member
    Post count: 46

    Would this code work in Uplift/Cardinal?

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register