Title: Having Divi Problems
Last modified: February 2, 2021

---

# Having Divi Problems

 *  Resolved [WillOfTheWeb](https://wordpress.org/support/users/willoftheweb/)
 * (@willoftheweb)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/)
 * Hi
 * I’m having issues with this plugin when using Divi. I am designing the product
   pages in the Divi builder but when I do this the contact button appears out of
   the Divi builder area. It works fine when I use the default Woo layout. Can I
   use a shortcode instead?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhaving-divi-problems%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [DeltaDude](https://wordpress.org/support/users/deltadude/)
 * (@deltadude)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-13998341)
 * Having a similar issue myself.
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14001497)
 * Hey [@deltadude](https://wordpress.org/support/users/deltadude/) and [@willoftheweb](https://wordpress.org/support/users/willoftheweb/)
 * We will have the development team test the issue at our end and get back to you
   soon with an update 🙂
 * Regarding the shortcode, we have this feature available in our Pro version of
   the plugin. Here is a link to our documentation: [https://wisdmlabs.com/docs/article/wisdm-product-enquiry-pro/pep-features/compatibility-with-page-builder-elementor/](https://wisdmlabs.com/docs/article/wisdm-product-enquiry-pro/pep-features/compatibility-with-page-builder-elementor/)
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14034111)
 * Hey [@deltadude](https://wordpress.org/support/users/deltadude/) and [@willoftheweb](https://wordpress.org/support/users/willoftheweb/)
 * Please add the following code in your theme or child theme’s functions.php file:
 *     ```
       add_filter('wp_head', 'pe_is_divi_single_product_page_layout_enabled', 20);
   
       function pe_is_divi_single_product_page_layout_enabled()
       {
           // Check if PEP plugin is active
           if (is_plugin_active('product-enquiry-for-woocommerce/product-enquiry-for-woocommerce.php')) {
               // Check if single product page and Divi Layout has been set
               if (is_product() && defined('ET_THEME_BUILDER_BODY_LAYOUT_POST_TYPE') && 'et_body_layout' == ET_THEME_BUILDER_BODY_LAYOUT_POST_TYPE) {
                   if (!class_exists('PE_Public_Enquiry_Button')) {
                       include_once(WDM_PE_PLUGIN_PATH . 'public/class-pe-public-enquiry-button.php');
                   }
   
                   $enq_btn = PE_Public_Enquiry_Button::instance();
                   remove_action( 'woocommerce_single_product_summary', array($enq_btn, 'render_enquiry_button'), 30);
                   remove_action( 'woocommerce_after_single_product_summary', array($enq_btn, 'render_enquiry_button'), 10);
   
                   // Add PEP button after the add to cart form
                   add_action('woocommerce_after_add_to_cart_form', 'pe_add_enq_btn_66737');
               }
           }
       }
   
       function pe_add_enq_btn_66737()
       {
           if(!class_exists('PE_Public_Enquiry_Button')) {
               include_once(WDM_PE_PLUGIN_PATH . 'public/class-pe-public-enquiry-button.php');
           }
           $enq_btn = PE_Public_Enquiry_Button::instance();
           $enq_btn->render_enquiry_button();
       }
       ```
   
 * The above code will remove the PEFree enquiry button from the top-left corner
   and will add the enquiry button after the add to cart form.
 * Please test this at your end and let us know if the issue is resolved for you
   🙂
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14062361)
 * Hey [@deltadude](https://wordpress.org/support/users/deltadude/) and [@willoftheweb](https://wordpress.org/support/users/willoftheweb/)
 * Could you please confirm if the solution we provided in the previous comment 
   resolved the issue for you 🙂
 *  Thread Starter [WillOfTheWeb](https://wordpress.org/support/users/willoftheweb/)
 * (@willoftheweb)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14062477)
 * Hi, thanks for the fix. In the meantime though I used another way of adding the
   form.
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14063134)
 * Hey [@willoftheweb](https://wordpress.org/support/users/willoftheweb/)
 * I am glad you were able to find a solution. If you need any further assistance,
   please let us know, we are more than happy to help 🙂
 * We will be closing this ticket for now. Feel free to contact us, we are always
   here to help 🙂
 *  [bazzarillo](https://wordpress.org/support/users/bazzarillo/)
 * (@bazzarillo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14612349)
 * Dear support
 * I have the same issue, but the code-snippet you provided did not solve it for
   me.
 * Neither adding the Divi-Woocommerce Cart-Module nor adding the PEP shortcode 
   work, so I really do not know how to approach this problem.
 * You can find an example under:
 * [https://critarion.com/wp/product/abasaglar-100-u-ml-solution-for-injection-cartridge/](https://critarion.com/wp/product/abasaglar-100-u-ml-solution-for-injection-cartridge/)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Having Divi Problems’ is closed to new replies.

 * ![](https://ps.w.org/product-enquiry-for-woocommerce/assets/icon-256x256.png?
   rev=1037514)
 * [Product Enquiry for WooCommerce](https://wordpress.org/plugins/product-enquiry-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-enquiry-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-enquiry-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-enquiry-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-enquiry-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-enquiry-for-woocommerce/reviews/)

## Tags

 * [contact button](https://wordpress.org/support/topic-tag/contact-button/)
 * [divi](https://wordpress.org/support/topic-tag/divi/)

 * 7 replies
 * 4 participants
 * Last reply from: [bazzarillo](https://wordpress.org/support/users/bazzarillo/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/having-divi-problems/#post-14612349)
 * Status: resolved