New Landing How can we help? Themeforest Theme Support Joyn Delete page builder templates

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Joyn
  • #270953
    nosuchagency
    Member
    Post count: 226

    Hello.

    Maybe I’m blind, but cannot seem to find where I can delete Page Templates from the Swift Pagebuilder….

    Where do I do that?

    Thank you.

    Soren.

    #271067
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try to add the code below to the functions.php of your child theme

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

    Let us know if it worked.

    -Rui

    #271076
    nosuchagency
    Member
    Post count: 226

    OK great.

    Thanks, I’ll give it a try and let you know if it doesn’t work.

    You can close this ticket, I’ll reopen if I come across errors or any weird behaviour.

    Thank you.

    Søren.

    #271082
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok. No problem.

    -Rui

    #271417
    nosuchagency
    Member
    Post count: 226

    Hi Rui.

    Unfortunately that didn’t work :o(
    We’ve also utilised the Uplift theme now and I tried to modify the code replacing ‘joyn’ with ‘uplift’, but no luck.

    Let me hear your thoughts…

    Thank you.

    SørenJ.

    #271472
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    can you try this code instead on both installations(Joyn and Uplift).

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

    -Rui

    #271485
    nosuchagency
    Member
    Post count: 226

    Hello again.

    Just to be absolutely on the same page.
    When I want to delete the existing page templates, is there a specific setting under Theme Settings or is it on any given page where the Pagebuilder is active?

    If it’s the latter, then – Nope, didn’t work either…

    SørenJ.

    #271803
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    This time will work.
    In the code that I sent you replace this line:

    add_filter('spb_prebuilt_templates', 'sf_remove_spb_templates');

    by this one:

    add_filter('spb_prebuilt_templates', 'sf_remove_spb_templates', 99);

    It was just a priority issue using the filter.

    -Rui

    #272107
    nosuchagency
    Member
    Post count: 226

    Hep hep!

    Looks like it worked.
    Everything is gone now (including the few templates I build and saved), but it looks like saving new templates keeps them with a nice trash-icon when hovering on item.

    Good good, me happy :o)

    You can close this ticket.

    Thank you.

    SørenJ.

    #272116
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad it’s sorted.
    The ones that have the delete option are your custom ones.

    -Rui

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

You must be logged in to reply to this topic.