Tagged: avia builder, CPT, Custom Post Type
-
AuthorPosts
-
August 4, 2022 at 4:26 pm #1360655
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.jpgHope you can assist with this issue.
Kind regards,
Team VDLPAugust 4, 2022 at 4:51 pm #1360664Hi there,
Solved it! This issue can be closed.
Kind regards,
Team VDLPAugust 4, 2022 at 7:43 pm #1360680And – maybe your solution to similar problems can help others?
;)August 4, 2022 at 7:52 pm #1360688Hey Team VDLP,
Glad you guys figured it out!
Would you mind sharing your solution for future readers? :)
Best regards,
YigitAugust 5, 2022 at 10:55 am #1360760Hey 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/
August 5, 2022 at 12:47 pm #1360792Hi 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);August 5, 2022 at 3:14 pm #1360809August 8, 2022 at 4:54 pm #1361136hm – how did you manage it without that snippet before?
The CPT’s aren’t included to advanced layout builder before Enfold 5.0 too … -
AuthorPosts
- You must be logged in to reply to this topic.
