New Landing How can we help? Themeforest Theme Support Dante Swift page editor with Pods custom post type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #250432
    enricotal70
    Member
    Post count: 8

    I’ve created a new custom post type using the plugin Pods (http://pods.io/) and the ‘Swift page builder’ button is not present above the editor in this custom post.
    Is it a known issue? It looks like pods and the Swift framework don’t have build in support, where should I look into to make the visual editor available for a custom post type?

    Thanks

    #250438
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    A developer should really assist you with the integration, you need to edit this file: /wp-content/themes/dante/swift-framework/page-builder/builder/lib/builder.php

    Find this:

                if ($enable_pb_product_pages) {
                $this->postTypes = $pt_array ? $pt_array : array('page', 'post', 'portfolio', 'product', 'team', 'jobs', 'ajde_events');
                } else {
                $this->postTypes = $pt_array ? $pt_array : array('page', 'post', 'portfolio', 'team', 'jobs', 'ajde_events');	            
                }

    add your CPT slug in each line after 'ajde_events', ex: 'ajde_events', 'my_ctp_slug'

    Thanks.

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