|
/ Documentation /CartFlows/Integrations/ How to Enable Enfold Avia Layout Builder in CartFlows Steps?

How to Enable Enfold Avia Layout Builder in CartFlows Steps?

By default, the Enfold theme’s Avia Layout Builder is not available on CartFlows steps. However, with a simple code addition, you can enable support and start designing your CartFlows pages using the Avia Builder.

Method 1: Add Code to Your Child Theme

Follow these steps to enable the builder by adding custom code to your child theme:

Step 1: Copy the Code Below

// Do not include this if already open!

/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/

/**
* Function to allow Enfold theme to edit the CartFlows pages using it's page builder.
*
* @param array $supported_post_types Array of supported post type by the theme.
*
* @return array $supported_post_types Modified array of supported post type by the theme.
*/
function avf_add_cartflows_post_type_in_theme( array $supported_post_types ) {
$supported_post_types[] = 'cartflows_step';
return $supported_post_types;
}

add_filter( 'avf_alb_supported_post_types', 'avf_add_cartflows_post_type_in_theme', 10, 1 );
add_filter( 'avf_metabox_layout_post_types', 'avf_add_cartflows_post_type_in_theme', 10, 1 );

Step 2: Paste Into Your Child Theme

  • Go to Appearance > Theme File Editor
  • Open your child theme’s functions.php file
  • Scroll to the bottom and paste the copied code
  • Save the changes

Method 2: Use the Code Snippets Plugin

If you prefer not to modify theme files directly, you can use the Code Snippets plugin:

  1. Install and activate the Code Snippets plugin (free from WordPress.org).
  2. Create a new snippet and paste the same code shown above.
  3. Set the snippet to run on both front-end and back-end.
  4. Save and activate the snippet.

Here is a video tutorial on how to add custom functions to your website.

After applying either method, the Avia Layout Builder will be available for all CartFlows steps, allowing you to design your funnel pages with Enfold’s native builder.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page