• Resolved Tuba Saif

    (@tuba121)


    As most of the themes override the woocommerce template almost all of the themes except twenty twenty two/three/four. As i am trying to override the meta template it effects for all themes but not for wenty two/three/four.what the reason?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @tuba121,

    It seems like you’re having issues overriding the meta template for the Twenty Twenty-Two/Three/Four themes.

    Before we could dive deep into the reason why, could you please share the goals you are trying to achieve with overriding the template?

    This will help us have a clearly understanding of what you are trying to achieve and advise accordingly.

    Thread Starter Tuba Saif

    (@tuba121)

    I was trying to remove product category from woocommerce single product page.I code for this that working fine in all the themes except twenty twenty… But I want to know that when I am editing/overriding either the meta.php or writing any custom code. It is not working in twenty twenty.. themes.

    // Disable category on product page function custom_product_meta_end() { $buffered_content = ob_get_clean(); $modified_content = preg_replace(‘/<span class=”posted_in”>(.*?)<\/span>/’, ”, $buffered_content); echo $modified_content; } add_action(‘woocommerce_product_meta_end’, ‘custom_product_meta_end’);

    ?? hey @tuba121

    As I understand, the inquiry here is contained in the following phrase:

    trying to remove product category from woocommerce single product page

    For details on template structure & Overriding templates via a theme, feel free to take a look at the related document, linked here, for your convenience.

    trying to override the meta template it effects for all themes but not for wenty two/three/four.what the reason?

    The TT2, TT3, and TT4 themes are block-based.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘override single product page meta template.’ is closed to new replies.