This is only happening on my custom post type, but the very first sections starts by pulling in the section close markup so all of my markup ends up outside the #wrap_all here.
What could be going on? Enfold is up to date and I went through and updated any of the custom code.
Hey pippylu,
Have you tried disabling all active plugins to see if the issue resolves?
Best regards,
Jordan Shannon
Yes, it still happens even with all plugins turned off.
Hi pippylu,
Does this still happen when you use the parent theme (Enfold)? instead of the child theme?
Best regards,
Nikko
Nope, it only happens in the child theme
Hi pippylu,
Thanks for confirming, since you have modified section.php, the custom codes are causing the issue, you might just have missed something in the code and that if that’s fixed the issue should be resolved.
Best regards,
Nikko
Yes, but I already went through all the code and couldn’t find any issues. I literally strip the theme to nothing but the custom post type declaration and it’s still happening. Could it be something with the way the post type is configured?
Here is a dev site with all plugins turned off and child theme empty except for custom post type. Still happens…
Hi pippylu,
Thanks for providing the dev site.
I see what’s missing now, I have added this in your child theme’s functions.php:
function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = 'chinese';
return $supported_post_types;
}
add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
For more information regarding this, you can refer to our documentation: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
Best regards,
Nikko
Wonderful, thank you! That worked.
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon