Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #324867

    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

    #325226

    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

    #331690

    Hi,

    No, that didn’t work. Here’s a link to the problem page.

    http://findmy.fitness/success-story/support-friendship/

    Regards, Nick

    #331856

    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

    #332330

    Thanks. All resolved!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Avia Style CSS missing from CPT’ is closed to new replies.