-
AuthorPosts
-
December 20, 2014 at 8:16 pm #371028
Is it possible to get the Avia Layout Builder for blog posts? I’m half way through designing my website and I’ve used the Avia Layout Builder on my pages and it was so helpful and easy. But now I’m adding my blog post and I noticed that there is no toggle to activate the Avia Layout Builder.
Am I missing something? Is there an option to toggle it on in the settings?
December 20, 2014 at 8:46 pm #371029Hi stwroids,
see Enfold Documentation articles Use the Layout Builder with any post type-
This reply was modified 10 years, 11 months ago by
begrafiks.
December 20, 2014 at 9:56 pm #371047Thank you for the reply begrafiks,
I had just uploaded a child theme and I just wanted to double check with everybody before I mess something up :)
Would I just copy that snippet into my style.css in the child-theme folder? And it also said to replace the word ‘post’ with my custom post type, I’m not really understanding what that means. Could you explain?
Thanks!
December 20, 2014 at 10:46 pm #371062Hey!
No, the snippet must go inside the child theme functions.php (create one if needed):
<?php 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; }Cheers!
JosueDecember 20, 2014 at 10:50 pm #371067Thank you Josue!
I will do that right now, but what do I put where it says “instead add the name of the custom post type here”?
December 20, 2014 at 11:02 pm #371081Just leave it as it is.
December 20, 2014 at 11:05 pm #371082It worked, thank you!
Out of curiosity, why is the Avia Layout Builder not built for post without adding this snippet?
December 20, 2014 at 11:19 pm #371085Hey!
Because Posts have built-in elements like comments and share links, when you enable ALB on a post/page/portfolio it creates an empty canvas for you to have total control of the layout.
Regards,
Josue -
This reply was modified 10 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
