
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
April 14, 2022 at 2:48 am #1348334
I have two articles I’m trying to publish and in attempting to view the autosave versions, the content now display’s as shortcode. How do I get back to the Avia Layout Builder?
April 14, 2022 at 12:43 pm #1348368Hi Design,
It looks like the Layout Builder is not active for the post type you are using, please refer to this: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
Best regards,
RikardApril 14, 2022 at 6:44 pm #1348448Thank you that seemed to work, but I already had the following two filters in functions.php. Should I keep those in there still?
/* to support displaying custom post types */ add_theme_support('add_avia_builder_post_type_option'); add_theme_support('avia_template_builder_custom_post_type_grid'); /* to display advanced portfolio setting */ add_filter( 'avf_builder_boxes ', 'enable_boxes_on_posts '); function enable_boxes_on_posts($boxes) { $boxes[] = array( 'title ' =>__( 'Avia Layout Builder ', 'avia_framework ' ), 'id '=> 'avia_builder ', 'page '=>array( 'portfolio ', 'page ', 'post ', 'user_guide'), 'context '=> 'normal ', 'expandable '=>true ); $boxes[] = array( 'title ' =>__( 'Layout ', 'avia_framework ' ), 'id '=> 'layout ', 'page '=>array( 'portfolio ', 'page ', 'post ', 'user_guide'), 'context '=> 'side ', 'priority '=> 'low '); $boxes[] = array( 'title ' =>__( 'Additional Portfolio Settings ', 'avia_framework ' ), 'id '=> 'preview ', 'page '=>array( 'portfolio ', 'user_guide'), 'context '=> 'normal ', 'priority '=> 'high ' ); return $boxes; } /* add advanced layout editor to user guide custom post type */ add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'user_guide'; } } return $metabox; }
April 19, 2022 at 12:00 pm #1348779Hi,
Thank you for the inquiry.
You have to replace the avf_builder_boxes with the avf_alb_supported_post_types filter.
function avf_alb_supported_post_types_mod( array $supported_post_types ) { $supported_post_types[] = 'user_guide'; return $supported_post_types; } add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
This will enable the Advance Layout Builder (ALB) for the user_guide post type.
Best regards,
Ismael -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.