Tagged: avia layout builder, enfold, Toolset
-
AuthorPosts
-
February 6, 2018 at 10:03 am #908440
Dear @Ismael,
as you told me in this thread https://kriesi.at/support/topic/adding-advanced-layout-builder-to-custom-taxonomy-under-new-toolset-types-plugin/ I now create this topic. … and I try to locate the potential search queries a little bit better for all comming users after me with the same issue.
The question is how to integrate the Avia Layout Builder from Enfold with the Toolset plugin.
In the private content you’ll find all needed data.
I’m so looking forward for your help.February 7, 2018 at 12:52 pm #909085Hey Chris,
Thank you for using Enfold.
You didn’t create any custom post types yet. What would be the name or slug of the custom post type? After creating the custom post type, enable it by using the “avf_builder_boxes” filter. Replace the default value “post” with the name or slug of the custom post type.
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; }
Best regards,
IsmaelFebruary 7, 2018 at 12:57 pm #909094Hi @ismael,
I added the post type called “guide_guide” and placed this code allready in the functions.php:function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'guide_guide'; /*instead add the name of the custom post type here*/ } } return $metabox; }
The post type you’d find in the private content of the initial post. Is something wrong woth that?
February 7, 2018 at 2:02 pm #909147Possibly I would have to strictly create the custom post types using Toolset. I thought it would read the types from other sources. I’ll try that and come back with the solution or problem afterwards.
February 7, 2018 at 4:27 pm #909259Hi,
Alright. Please let us know if you encounter any issues with the filter.
Best regards,
IsmaelAugust 23, 2018 at 12:20 pm #1000700Hello Chris,
How did your tests go with the Toolset plugin?
Do you use the full version (and paid) or do you only refer to Types (which is free)?
I am looking for a solution to customize a product page of WooCommerce:
display a selection of attributes (their name and their value) for example).
As I understand it, Toolset plugin allows to create custom posts and / or the template of the product page, product category, etc.August 23, 2018 at 9:13 pm #1000967Hi,
@I-Visio have you contacted the plugin developers asking that question to see what they will let u know?Best regards,
BasilisAugust 27, 2018 at 1:12 pm #1002259Hey i-Visio,
I’m still working on it, so I can’t tell you how to fix that.
But with WooCommerce you have different options to solve that. Did you tried this:
https://www.inmotionhosting.com/support/edu/woocommerce/how-to-use-product-attributes-in-woocommerceHopüe it helps.
Cheers,
ChrisAugust 27, 2018 at 2:37 pm #1002290Hi Cris,
Thanks for your link, I’ll take a look.
I asked Tooset support if the plugin could display a selection of attributes and not the complete list of those of a product. And this is not possible with Toolset.
It seems that it was possible with the creation of shortcodes.
If I find a way to do it, I’ll publish it.Have a nice day
August 27, 2018 at 9:35 pm #1002452Hi,
Thank you very much for sharing it also!
Best regards,
BasilisSeptember 3, 2018 at 11:47 am #1004887Hey @Ismael,
I’m now working on that again and try to find a solution. But if I integrate your posted function to function.php I get this error:
Fatal error: Cannot redeclare add_builder_to_posttype() (previously declared in /wp-content/themes/enfold-child/functions.php:153) in /wp-content/themes/enfold-child/functions.php on line 206
Your login credentials still work. Could you please have a look what changed in the theme with the last updates that causes the code not to work properly?
Thanks a lot for your help.
September 3, 2018 at 1:12 pm #1004928One question at all: is it now possible to integrate Toolset into Enfold? Using the Avia Layout Architect to build the layouts, Views and so on …? <3
- This reply was modified 6 years, 3 months ago by Chris.
September 3, 2018 at 5:06 pm #1005055Hi Chris,
You have this function declared already add_builder_to_posttype, that’s why you get the error. Please check your functions.php file.
Best regards,
VictoriaSeptember 3, 2018 at 7:59 pm #1005145Thanks Victoria,
you where right offcourse. I switched it and now the error disappeared.
But how can I get the Avia Layout Architect to build the frontend layouts fro toolset? I don’t get it …Please help me if possible.
All the best,
ChrisSeptember 4, 2018 at 8:00 am #1005311Hi,
Have you tried to contact the plugin author? Let us know what they have to say and if there is anything we can help you make it work we will be happy to do it for you :)
Best regards,
VinaySeptember 11, 2018 at 1:09 pm #1008382I integrated the Avia Layout Architect for the Objects to Style them. I think it’s unpossible to integrate it in the Toolset Options Views, Layouts nore Templates. I’ll keep you informed about the development.
This code integrated it for me (functions.php in Theme-Child):
function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'forellensee'; /*instead add the name of the custom post type here*/ } } return $metabox; }
AND THIS
add_filter(‘avf_builder_boxes’, ‘avia_register_meta_boxes’, 10, 1); //Add meta boxes to custom post types function avia_register_meta_boxes($boxes) { if(!empty($boxes)) { foreach($boxes as $key => $box) { $boxes[$key][‘page’][] = ‘forellensee’; $boxes[$key][‘page’][] = ‘guide_guide’; } } return $boxes; }
September 13, 2018 at 4:11 am #1009174Hi,
Thanks for the update.
Is this working? Can you see the advance layout builder button when you create a “forellensee” post item?
Best regards,
IsmaelSeptember 13, 2018 at 7:02 am #1009241October 18, 2020 at 2:41 am #1253554Good night,
I have a problem with the integration of toolset (paid version). I have been using Enfold for years and have not had any problem but the incompatibility with toolset is worrying me.
I am not able to make visible the custom types on the pages, could you help me?
October 20, 2020 at 8:38 am #1254261 -
AuthorPosts
- The topic ‘Integration of Toolset into Enfold theme’ is closed to new replies.