New Landing How can we help? Atelier Remove demo page templates from my site

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #269033
    sorelh
    Member
    Post count: 169

    Hi

    There are loads of demo page templates on my page templates elements, how can I remove the demo page templates (there is no wastebin icon to remove them) I have turned off swift demo content in my plug-ins and I need to remove these theme demo page templates.

    Screenshot attached

    Thanks

    Sorel

    Attachments:
    You must be logged in to view attached files.
    #269106
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try adding this to your functions.php of the child theme.

    remover_filter('spb_prebuilt_templates', 'sf_atelier_spb_templates');

    Let me know if it worked.

    -Rui

    #269154
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #269337
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    My code wasn’t correct.
    I added this to your current functions.php of the child theme.

    ` function remove_atelier_page_templates() {
    remove_filter(‘spb_prebuilt_templates’, ‘sf_atelier_spb_templates’);
    }
    add_action( ‘init’, ‘remove_atelier_page_templates’);
    `

    Now you will just need to update the theme.

    -Rui

    #269347
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #269354
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Strange, this should be working. Will have to test it on my development server.
    I can remove it temporarily from the parent theme so you can show it to your client. Let me know if necessary.

    -Rui

    #269355
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #269496
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I got it working in the child theme. This was the final code I added in the child theme.

    function sf_remove_atelier_spb_templates($prebuilt_templates) {
      		$prebuilt_templates = array();
                    return $prebuilt_templates;
    }
    add_filter('spb_prebuilt_templates', 'sf_remove_atelier_spb_templates');

    Hope it helps.

    -Rui

    #269498
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #269500
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    yes, because it is in the child theme. No problem.

    -Rui

    #269501
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #269503
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem.
    -Rui

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

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

License required for one of the following items
Login and Registration Log in · Register