-1

I want to translate manually a text from 'cart' to 'panier' !

Is there a way that doesn't broke anything (with css ? Php ?) I can't manage either with the CSS of the php (function{$translate}) the label of the cart button :

enter image description here

I can only change de HTML directly from the inspector :

enter image description here

Is there a way i can change that by css ? (i tried the content: 'Panier'!important code with all the division, but nothing works...

  • 1
    Why do you want to change with only CSS? There are some hacky ways to do this. – m4n0 Apr 22 '21 at 10:27
  • Does this answer your question? [How can I replace text with CSS?](https://stackoverflow.com/questions/7896402/how-can-i-replace-text-with-css) – nosurs Apr 22 '21 at 11:10
  • Well actually, my goal is just to change the 'cart' label and i don't know where to change that ... ! The article that you show isn't a real solution, cause i could just replace the shortcde by a text and a link – EdouardFocusAid Apr 22 '21 at 12:46

1 Answers1

1

In best case this should be translated via translation files .po, which are default translations in WP, and WooCommerce also use them.

In some custom solutions you should be able to filter some part of the code to re-render it in your way. This screenshot which you provide tell us nothing. You should provide source code which render this HTML, like WC template

Kamil
  • 217
  • 4
  • 16