Viewing 4 replies - 1 through 4 (of 4 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    You could do this with just some custom CSS I’d imagine. Just hide the text with css, and use the :before or :after selectors to insert your icon.

    You could override some templates to do this or use the filters available – but css is the easiest route – plus you keep the add to cart text there in the dom.

    A few things to consider though, as 1) this icon may not provide as much clarity as the text, and 2) those using screen readers could have trouble using your site.

    Thread Starter designerbhartiyam

    (@designerbhartiyam)

    actually there is only icon show…and am not able to find in which file is this..via css i can hide icon but i want to show add to cart text in place of icon so thats the problem…hope you got it.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Ahh, so it’s the reverse. Your theme or another plugin must be removing the text then – because this isn’t done by WooCommerce core. So first let’s find out what is causing it.

    Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.

    Thread Starter designerbhartiyam

    (@designerbhartiyam)

    thanks dear for your response and help thanks lot ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘icon show in place of add to cart how i add text’ is closed to new replies.