Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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.

    #909085

    Hey 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,
    Ismael

    #909094

    Hi @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?

    #909147

    Possibly 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.

    #909259

    Hi,

    Alright. Please let us know if you encounter any issues with the filter.

    Best regards,
    Ismael

    #1000700

    Hello 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.

    #1000967

    Hi,

    @i-visio have you contacted the plugin developers asking that question to see what they will let u know?

    Best regards,
    Basilis

    #1002259

    Hey 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-woocommerce

    Hopüe it helps.

    Cheers,
    Chris

    #1002290

    Hi 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

    #1002452

    Hi,

    Thank you very much for sharing it also!

    Best regards,
    Basilis

    #1004887

    Hey @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.

    #1004928

    One 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 2 years ago by  Chris.
    #1005055

    Hi 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,
    Victoria

    #1005145

    Thanks 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,
    Chris

    #1005311

    Hi,

    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,
    Vinay

    #1008382

    I 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;
    }
    #1009174

    Hi,

    Thanks for the update.

    Is this working? Can you see the advance layout builder button when you create a “forellensee” post item?

    Best regards,
    Ismael

    #1009241

    Hi @ismael,

    yes I can. When I build a “Forellensee” (sample I use) I can choose to open the Avia Layout Architect just as the other post types.

    Best regards,
    Chris

    • This reply was modified 2 years ago by  Chris.
Viewing 18 posts - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.