Tagged: Frontend Display Issue, Product Page Description, Product Page Layout Issue, woocommerce compatibility, WooCommerce Tabs
-
AuthorPosts
-
November 28, 2024 at 7:45 am #1472431
I am experiencing an issue with my WooCommerce product pages while using the Enfold – Responsive Multi-Purpose Theme (Version 6.0.6). Specifically, the product description is not displayed by default when visiting a product page.
Details of My Setup:
WordPress Version: 6.7.1
WooCommerce Version: 9.4.2
Theme: Enfold – Responsive Multi-Purpose Theme
Product Page Example: HairLife Product PageSteps I’ve Tried:
1. Added the PHP code snippet to the functions.php following this suggested solution from this thread Link2. Used JavaScript to ensure the description tab opens by default
add_action('wp_footer', 'open_description_tab_default'); function open_description_tab_default() { if (is_product()) { ?> <script> document.addEventListener('DOMContentLoaded', function () { let tab = document.querySelector('.woocommerce-Tabs-panel--description'); if (tab) { tab.style.display = 'block'; } }); </script> <?php } }
3. Verified that product descriptions exist in WooCommerce’s product editor.
Could you please guide me on how to:
Ensure the product description is displayed by default without requiring the tab to be clicked.
I’ve already tested with minimal plugins to rule out conflicts, and this issue seems directly related to the theme. Any advice or customization tips would be greatly appreciated.
Thank you in advance for your support!
Best regards,
SidNovember 28, 2024 at 9:21 am #1472449Hey sidsingh78,
Thank you for the inquiry.
We see this error in the console when we checked the product page:
Uncaught TypeError: Cannot read properties of undefined (reading 'register') at avia-footer-scripts-400d684f4690d9b1d3fa5495d0cb8833---674784f8c4995.js:167:779 at
The error is generated from the compressed scripts, so we can’t pinpoint where it’s coming from. Please temporarily disable the Enfold > Performance > File Compression settings and let us know if the issue persists.
Best regards,
IsmaelNovember 28, 2024 at 12:31 pm #1472485Thank you for your assistance. Disabling the Enfold > Performance > File Compression settings resolved the issue, and the product description now displays by default on the WooCommerce product page.
I appreciate your prompt support!
Best regards,
SidNovember 28, 2024 at 4:46 pm #1472523 -
AuthorPosts
- You must be logged in to reply to this topic.