- This topic has 12 replies, 5 voices, and was last updated 6 years, 3 months ago by
Tom.
-
AuthorPosts
-
August 16, 2017 at 7:46 am #367285
Drijen
August 16, 2017 at 8:04 am #367299Leo
StaffCustomer SupportHi there,
Sorry not quite familiar with Beaver Themer but maybe Sidebar layout is done by GP?
https://docs.generatepress.com/article/sidebar-layout/October 1, 2017 at 4:38 pm #395586Robert
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?
October 1, 2017 at 5:51 pm #395597Robert
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/
October 1, 2017 at 9:11 pm #395655Tom
Lead DeveloperLead DeveloperThe 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.
October 2, 2017 at 4:53 pm #396205Robert
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.
October 2, 2017 at 9:46 pm #396286Tom
Lead DeveloperLead DeveloperDo we know the name of their post type? I could try to provide some code.
October 3, 2017 at 10:59 am #396790Robert
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.
October 3, 2017 at 4:15 pm #396940Robert
Spoke with Beaver Builder and they said that the custom post type is called: fl-theme-layouts. Not sure if that helps.
October 3, 2017 at 9:57 pm #397051Tom
Lead DeveloperLead DeveloperYou 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' ); }October 6, 2017 at 2:20 pm #398767Robert
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 😉
July 19, 2019 at 8:51 am #962083Jo
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.
July 19, 2019 at 7:55 pm #962353Tom
Lead DeveloperLead DeveloperI’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; } ); -
AuthorPosts
- You must be logged in to reply to this topic.
