• Resolved jarr24

    (@jarr24)


    Hi,
    I need help. I’m using Ocean WP default theme with Child theme. When I use child theme (oceanwp) body tag has no woocommerce classes (has no: product-template-default single single-product woocommerce woocommerce-page woocommerce-js). What is the reason? Thank you in advance for answars!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jarr24

    (@jarr24)

    Hi,

    I found solution.
    It was OceanWP theme problem.
    The body tag in header.php file should contain also default wordpress classes from get_body_class()

    BEFORE:
    <body <?php body_class(); ?>>

    AFTER CHANGES:
    <body <?php body_class( implode( ‘ ‘, get_body_class() ) ); ?>>

    Please fix it in next theme version.

    • This reply was modified 5 years, 5 months ago by jarr24.
    • This reply was modified 5 years, 5 months ago by jarr24.
    Plugin Support Steve E.a11n

    (@woosteve)

    Automattic Happiness Engineer

    Hi there,

    Thanks for posting a followup with the solution. I’ll go ahead and mark this one as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Child theme has no woocommerce body classes’ is closed to new replies.