Site logo

Archived topic

Integration with Beaver Themer - Sidebar

12 replies · Started by Drijen on August 16, 2017

Viewing posts 1–13 of 13

Hi there,

I've install Beaver Themer, and I noticed when trying to create a Layout, the page options doesn't show certain things such as Sidebar Layout.

https://www.screencast.com/t/2jQzc0BVlSg

Is there something I need to do to enable these for Beaver Themer Templates?

I can confirm this behavior. Basically Beaver Themer completely takes over the single post layout and it doesn't look like the sidebar settings work at all, you basically have to add the sidebar back in manually when designing the layout, thus it's not ideal. Have there been any solutions to this?

There's actually a plugin that looks to bridge the gap here with Beaver Themer by adding the relevant meta boxes back to these specific page layouts. Is this something that can be done by targeting the post type and adding the meta box to that via a function?

https://www.wpbeaverworld.com/generatepress-connect-beaver-themer/

The GP metaboxes are set to only display on public post types. I'm assuming that it isn't a public post type, so the meta box won't show up on it.

Gotcha. Any idea how to do it? Obviously someone figured it out with the plugin that I linked to. Just seems like a cleaner way to integrate Beaver Themer and GP, not having to recreate the sidebar.

Do we know the name of their post type? I could try to provide some code.

Tom, I would love to be able to tell you but I'm afraid I don't know. I had the same thought process as you and was trying to determine the post type so I could create a function that would maybe add the meta boxes to it but alas, I could not figure it out. I did a little Googling and wasn't able to determine it either. I can try emailing Beaver Builder to see if they'll have any info.

Spoke with Beaver Builder and they said that the custom post type is called: fl-theme-layouts. Not sure if that helps.

You could try this:

add_action( 'add_meta_boxes', 'tu_fl_theme_sidebar_layouts' );
function tu_fl_theme_sidebar_layouts() { 

    add_meta_box (  
        'generate_layout_meta_box',
        __('Sidebar Layout','generatepress'),
        'generate_show_layout_meta_box',
        'fl-theme-layouts',
        'side',
        'default'
    ); 

}

Thanks Tom. No dice however. This could just be that the name for the CPT is incorrect so I emailed BB again to inquire. Thanks ;)

Hey did anything ever happen with this? It would be so great if we could add sidebars to themer layouts without having to hack them.

I'm not even sure if our standard metabox would work within Themer Layouts, unfortunately.

Does the filter work?:

add_filter( 'generate_sidebar_layout', function( $layout ) {
    if ( 'fl-theme-layouts' === get_post_type() ) {
        return 'no-sidebar';
    }

    return $layout;
} );
This archived topic is closed to new replies.