New Landing How can we help? Themeforest Theme Support Dante Swift page builder is missing in CPT

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #330179
    focusweb
    Member
    Post count: 8

    When I choose to edit a CPT, I see a regular editor and not the “Swift Page Builder”.
    I looked for “swift framework options” in the admin menu, but it doesn’t exists.

    (The “Swift Page Builder” exists in regular pages)

    How do I add the builder to the CPT?

    Thanks!

    #330270
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    The page builder is suppose to be enable in this cpt
    ‘page’, ‘post’, ‘portfolio’, ‘product’, ‘team’, ‘jobs’

    If they aren’t working in on of those cpt then provide us the site url and some admin credentials in a private reply.

    -Rui

    #330491
    focusweb
    Member
    Post count: 8

    According to this: http://www.swiftideas.com/forums/topic/swift-page-builder-for-custom-post-type/
    I added the following code in child-theme:

    function add_builder_to_cpt($pt_array) {
        array_push($pt_array, 'my-cpt-name');
        return $pt_array;
    }
    add_filter( 'spb_post_types', 'add_builder_to_cpt');

    However it doesn’t work.

    Could you please help?

    #330496
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I can’t see that filter in the code.

    try to add it directly in Dante/swift-framework/page-builder/builder/lib/builder.php in line 62 and 64.

    -Rui

    #330500
    focusweb
    Member
    Post count: 8

    The filter name was changed.
    This is the correct code:

    function add_builder_to_cpt($pt_array) {
        array_push($pt_array, 'my-cpt-name');
        return $pt_array;
    }
    add_filter( 'spb_pt_array', 'add_builder_to_cpt');
    #330516
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Will need the site url and admin credentials. Will also need ftp access to check your code.
    Use the private reply.

    Thanks

    -Rui

    #330520
    focusweb
    Member
    Post count: 8
    This reply has been marked as private.
    #330522
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Nice. Didn’t realize it was sorted.

    -Rui

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