New Landing How can we help? Themeforest Theme Support Neighborhood Duplicate Swift Page Builder Elements/ Custom Elements

Viewing 6 posts - 1 through 6 (of 6 total)
  • #188623
    elecsander
    Member
    Post count: 17

    Hello,

    where can I add/duplicate elements for the Swift Page Builder?

    For example:
    I want a new (custom) element with post fields for two URLs for two buttons and a field for an image background for this whole element/div.

    The result should be an element in the backend in the Swift Page Builder.
    I can’t find the Page Builder files.

    Thank you,
    Alex

    #188632
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    We can’t support those type of modifications, but it all happens inside this directory.
    neighborhood/includes/swift-framework/page-builder

    the assets are in neighborhood/includes/swift-framework/page-builder/builder/shortcodes

    -Rui

    #189816
    elecsander
    Member
    Post count: 17

    Thanks!!! It works.
    Is there a way to put the changes in the child-theme?
    I created a the same directory-structure, but it doesn’t work.

    Acutally it works only in the main-theme ‘Neighborhood”.

    #189826
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    humm, not so easy but try to copy also the swift-framework.php and inside the functions.php add this code

     if ( ! function_exists( 'sf_include_framework' ) ) {
            function sf_include_framework() {
                require_once( get_stylesheet_directory() . '/includes/swift-framework/swift-framework.php' );
            }
            add_action( 'init', 'sf_include_framework', 0 );
        }

    Inside the swift-framework.php of the child theme change the include directory of the page builder

    /* SWIFT PAGE BUILDER
    	================================================== */  
    	include_once(get_stylesheet_directory() . '/includes/swift-framework/page-builder/sf-page-builder.php');

    Give it a try.

    -Rui

    #191487
    elecsander
    Member
    Post count: 17

    Unfortunately it doesn’t work.
    The child doesn’t overwrite the custom options.

    #191639
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Does this file exists in the child theme? in the location below
    neighborhood-child/includes/swift-framework/page-builder/sf-page-builder.php

    -Rui

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