New Landing How can we help? Themeforest Theme Support Uplift Remove demo page templates from my site – Uplift

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Uplift
  • #292598
    davidll
    Member
    Post count: 205

    Hello

    Trying to remove all the page templates – so I can only see the ones I’ve created.
    I see that this is a request made an solved: http://www.swiftideas.com/forums/topic/remove-demo-page-templates-from-my-site/

    So I thought I’d add the code to my Child functions.php – and change ‘atelier’ to ‘uplift’ – but I can’t get it to work.

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

    Any help would be great.

    #292825
    David Martin – Support
    Moderator
    Post count: 20834

    It works for me if you increase the priority.

    function sf_remove_uplift_spb_templates($prebuilt_templates) {
       $prebuilt_templates = array();
       return $prebuilt_templates;
    }
    add_filter('spb_prebuilt_templates', 'sf_remove_uplift_spb_templates', 100);
    #292879
    davidll
    Member
    Post count: 205

    Perfect – Thanks David

    #292888
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks to David 🙂 .
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 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