Hi,
I’ve create a custom post type and associated template. Inside my template I’ve reference AVIA style such as layout elements and content. When the page is rendered the AVIA style is missing. Why?
My Page templates work fine but not my Post templates.
Any ideas?
Regards, Nick
Hey Nick!
Perhaps you need to enable ALB on that CPT, try adding this to functions.php:
add_filter('avf_builder_boxes','enable_boxes_on_posts');
function enable_boxes_on_posts($boxes) {
$boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('portfolio', page', 'post', '_POST_TYPE_SLUG_HERE_'), 'context'=>'normal', 'expandable'=>true );
$boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('portfolio', page', 'post', '_POST_TYPE_SLUG_HERE_'), 'context'=>'side', 'priority'=>'low');
$boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('portfolio', page', 'post','_POST_TYPE_SLUG_HERE_'), 'context'=>'normal', 'priority'=>'high' );
return $boxes;
}
Regards,
Josue
Hi,
No, that didn’t work. Here’s a link to the problem page.
http://findmy.fitness/success-story/support-friendship/
Regards, Nick
Hey Nick!
You need to apply the “main_color” class somewhere in your success-story single template file – http://screencast.com/t/tXFoXnejqtMD
Cheers!
Josue
Thanks. All resolved!