New Landing How can we help? Atelier Disable page builder assets

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Atelier
  • #199272
    AlbatiQue
    Member
    Post count: 46

    Hey,

    For a client I want the website to be as easy to use as possible. So I would like to delete some items of the pagebuilder that are not nessesary.
    I see you have placed code for this in functions.php file but where can I find the name of each asset so I can unset the once I want?

    Thanks

    #199279
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please use this function to disable Page Builder Elements. In the example below I remove the Parallax and Testimonial Slider.

    function spb_remove_assets( $pb_assets ) {
    	unset($pb_assets['parallax']);
    	unset($pb_assets['testimonial-slider']);
    	return $pb_assets;
     }
     add_filter( 'spb_assets_filter', 'spb_remove_assets' );

    To locate the names of all elements, open the plugin Swift Framework and navigate to /includes/page-builder/shortcodes/ there you will find the list of shortcode you can remove.

    Thanks,
    David.

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