Hi Kriesi,
Is there a function like is_alb() or something that will return true if the avia layout builder is used on a given page?
Thanks,
Joe
Hey JoeLovell,
You can check the page template, something like this
https://developer.wordpress.org/reference/functions/get_page_template/ and make decisions based on that.
Best regards,
Victoria
Hi Victoria,
I’m not sure that’s going to tell me. Won’t that just return the same template regardless of whether the layout builder is used on a given page/post?
Am I mistaken?
Thanks,
Joe
Hi Joe,
Pages and posts use different templates, Advanced Layout Builder uses /enfold/template-builder.php file first.
Best regards,
Victoria