Tagged: avia builder, CPT, Custom Post Type
Hi there,
Since Enfold 5.0 (and latest version) something happend with HTML structure in combination with custom post types.
With CPT UI we create custom post types and enable Avia Builder to create pages. Since Enfold 5.0 Avia builder sections are not included anymore in:
<div id=”main” class=”all_colors”>
It looks like this main div closes too early. Please check out the screenshot in the link below:
https://snipboard.io/G8JXKP.jpg
Hope you can assist with this issue.
Kind regards,
Team VDLP
Hi there,
Solved it! This issue can be closed.
Kind regards,
Team VDLP
And – maybe your solution to similar problems can help others?
;)
Hey Team VDLP,
Glad you guys figured it out!
Would you mind sharing your solution for future readers? :)
Best regards,
Yigit
Hey Team VDLP,
Your solution would be greatly appreciated. We are facing a same kind of issue as you are facing. Since the 5.0 update on some of the pages of our website <div> elements seems to be closing early which breaks the whole page.
I have made a topic on our problem as well, as it could come in handy: https://kriesi.at/support/topic/broken-styling-since-5-0-update/
Hi there,
Adding this filter to functions.php (child theme) solved our issue.
/**
* Enable ALB for any post type
*/
function vdlp_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = 'NAME_OF_CPT';
return $supported_post_types;
}
add_filter('avf_alb_supported_post_types', 'vdlp_alb_supported_post_types_mod', 10, 1);
hm – how did you manage it without that snippet before?
The CPT’s aren’t included to advanced layout builder before Enfold 5.0 too …