Hi,
I’ve coded all my subpages to conform to a certain layout but am having problems if i use the layout builder with the default page template i.e. the resulting page wont conform.
The issue lies in this line of html produced when using the layout builder
<div class="main_color container_wrap sidebar_right">
I need to add one of my own classes to this line to make the page fit with my structure, can you advise how best to achieve this ?
My test site can be found at http://staging.wexfordgaa.ie, notice how all subpages have the same layout but if you look at this subpage (built using the layout builder using the default page template) http://staging.wexfordgaa.ie/contact-us/forms/ it dosent conform.
I realise I’m breaking the normal flow here and probably will loose some features but if you could advise how best to add my own classess to the line above it would be great.
Thanks,
Mick.
Hey micknolan!
Thank you for using Enfold.
The advance layout builder will use one specific template, the template-builder.php file. So if you want to create your own template, you will not be able to use the advance layout builder unless you use the same logic used in the template-blank.php file.
if(!empty($avia_config['conditionals']['is_builder']))
{
$avia_config['conditionals']['is_builder_template'] = true;
get_template_part('template-builder');
exit();
}
else
{
get_template_part('page');
exit();
}
Best regards,
Ismael