• Previously I had changed the “Add to Cart” text on buttons to the following:

    Add<span class="tobasket"> to basket</span>

    This was so I could hide the span class on narrow viewports.

    However I’ve just updated to the latest version of WooCommerce and now instead of the button text displaying correctly it has the code instead of the text.

    Not really sure why this is now not displaying correctly in the latest version of WC?

    Any ideas?

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘Add span element to button’ is closed to new replies.