Hello, I’m using some code to use advcaned layout builder in posts but now I want to make some change to the template. Which files should I change in the child theme? This is the code I’m using for using advanced layout builder:
add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);
function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
{
$meta[‘page’][] = ‘post’; /*instead add the name of the custom post type here*/
}
}
return $metabox;
}
Hey octofianus,
You can create a new page template by simply copying enfold/page.php file and enfold/includes/loop-page.php files to your child theme and modifying them – https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
Best regards,
Yigit
(sorry for hijacking your post)
do you mean replace the file?
I tried to read the link but it made my head spin
also- in my APPEARANCE- THEME OPTIONS- I have my child theme but the parent theme says it’s version 3.6
I can’t delete it to replace it. thoughts?
Hi,
Did you try copying the files Yigit mentioned to your child theme? Did you try updating the parent instead of deleting it? http://kriesi.at/documentation/enfold/updating-your-theme-files/
Regards,
Rikard