Hi, I am using “Themeisle” custom post types – formerly Pippins Plugins – for many years. I have activated the builder in the meta settings for the custom post type and its all fine, however since the latest updated, 2.2, the “Layout Options” sidebar is missing. Is there some change to the code that requires it set somewhere else?
Hi roamingk!
Please refer to this post – https://kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/
Best regards,
Yigit
ok, so the old way of editing the “meta” settings on the templatebuilder config is no longer valid?
Hi roamingk,
The way proposed in the docs is much cleaner, don’t you think?
Best regards,
Victoria
Ok, I have multiple post types, but the example is not clear as to how to add more than one. I am getting an error when trying to update it. I think the issue is with the comma separator.
function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
{
$meta['page'][] = 'event' ,'bar' ,'restaurants', 'saunas'; /*instead add the name of the custom post type here*/
}
}
return $metabox;
}
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Basilis