• Resolved sertefi

    (@sertefi)


    Hi,
    The plugin works properly with the pages and posts but with a custom post type I have made, it doesn’t. (I enabled them on the pagebuilder settings though).
    which means, I am able to customize the rows and widgets of that custom post type but on the preview, it doesnt work. I see the plugin’s css files arent appearing.

    is there any docs or an option to help in that?
    Thank You

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi

    Thanks for posting.

    How are you adding the custom post type?
    What else do you see in the preview? Any other content, parts of the site etc?
    Is everything ok when you finally publish?

    Thread Starter sertefi

    (@sertefi)

    Thank You Andrew for your response. here is the code I used

    public function register_blocks() {
    
    		$labels = array(
    			'name'                => _x( 'HTML Blocks', 'Post Type General Name', $this->domain ),
    			'singular_name'       => _x( 'HTML Block', 'Post Type Singular Name', $this->domain ),
    			'menu_name'           => __( 'HTML Blocks', $this->domain ),
    			'parent_item_colon'   => __( 'Parent Item:', $this->domain ),
    			'all_items'           => __( 'All Items', $this->domain ),
    			'view_item'           => __( 'View Item', $this->domain ),
    			'add_new_item'        => __( 'Add New Item', $this->domain ),
    			'add_new'             => __( 'Add New', $this->domain ),
    			'edit_item'           => __( 'Edit Item', $this->domain ),
    			'update_item'         => __( 'Update Item', $this->domain ),
    			'search_items'        => __( 'Search Item', $this->domain ),
    			'not_found'           => __( 'Not found', $this->domain ),
    			'not_found_in_trash'  => __( 'Not found in Trash', $this->domain ),
    		);
    
    		$args = array(
    			'label'               => __( 'cms_block', $this->domain ),
    			'description'         => __( 'CMS Blocks for custom HTML to place in your pages', $this->domain ),
    			'labels'              => $labels,
    			//'supports'            => array( 'title', 'editor' ),
    			'hierarchical'        => false,
    			'public'              => true,
    			'show_ui'             => true,
    			'show_in_menu'        => true,
    			'show_in_nav_menus'   => true,
    			'show_in_admin_bar'   => true,
    			'menu_position'       => 99,
    			'menu_icon'           => 'dashicons-schedule',
    			'can_export'          => true,
    			'has_archive'         => true,
    			'exclude_from_search' => true,
    			'publicly_queryable'  => true,
    			'rewrite'             => true,
    			//'capability_type'     => 'page',
    		);
    
    		register_post_type( 'cms_block', $args );
    
    	}

    It’s a post type for an HTML block shortcode I am using to display on a mega menu.
    I customize the HTML block then I call it on the menus.
    I have checked out the preview of the post type page, the builder works properly there. builder css has been called properly). but not on the shortcode.no grids are applied.

    Thread Starter sertefi

    (@sertefi)

    I have tested it with wpbakery page builder and it works just fine in the menus.
    I’d like to use yours instead.please if you can help me, I would highly appreciate it

    Plugin Contributor alexgso

    (@alexgso)

    Hi sertefi,

    Can you please clarify what plugin is responsible for the HTML shortcode? If it’s a custom shortcode, can you please provide me with a copy of the code so I can take a look over it?

    Thread Starter sertefi

    (@sertefi)

    Thanks Alex
    It’s a custom plugin, I am not sure if I can send it by email or any other way.

    Plugin Contributor alexgso

    (@alexgso)

    Hi sertefi,

    If the code is publicly available on a website like GitHub, can you please email me a link to that?

    If it’s not, can you please post the shortcode’s PHP in a Pastebin so I can inspect it?

    Thread Starter sertefi

    (@sertefi)

    Plugin Contributor alexgso

    (@alexgso)

    Hi sertefi,

    Thanks. The provided code doesn’t any of the code directly related to the shortcode itself (specifically the add_shortcode). Can you please provide me with that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page builder compatibility’ is closed to new replies.