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

    Steps I’ve Tried:
    1. Added the PHP code snippet to the functions.php following this suggested solution from this thread Link

    2. 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,
    Sid

    #1472449

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

    #1472485

    Thank 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,
    Sid

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.