Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    @shaon007

    Thanks for reaching out to us. Unfortunately, this feature is not currently available.

    In that case you have to change our plugin file woo-variation-swatches > woo-variation-swatches.php > line number 124 and add <h2> tag there.

    Thanks

    Thread Starter shaon007

    (@shaon007)

    Let me try it

    Thread Starter shaon007

    (@shaon007)

    I have added H2 tags but its not working.
    Even the class is not showing.
    <label class=”shaon” for=”tag-name-for-<?php echo esc_attr( $taxonomy ) ?>”><h2><?php _ex( ‘Name’, ‘term name’ ); ?></h2></label>

    Is that the correct file you suggested me??

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi @shaon007 ,

    We are sorry for your inconvenience. So you want a <h2> tag before the label.

    Basically, it is coming from WooCommerce not from our plugin. You can customize a template by following below procedure-

    Create a child theme first and then inside your child theme create a folder woocommerce inside your child theme folder.

    Inside the woocommerce folder create folders like the following-

    single-product > add-to-product

    Then copy variable.php from wp-content > plugins > woocommerce > template > single-product > add-to-cart

    And paste it in your child theme > woocommerce > single-product > add-to-product, edit variable.php like this.

    After doing the above you will get <h2> on the frontend like this.

    Thanks

    Thread Starter shaon007

    (@shaon007)

    Thanks for it

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add header h2 tag in attribute name’ is closed to new replies.