I want my currency symbol to be hidden. How do I do that?

I got this piece of coding from the internet but I don’t know where to install it.

var elm = document.querySelectorAll(‘.price, .currency’); for(var i=0;i< elm.length;i++){ elm[i].innerHTML = elm[i].innerHTML.replace(‘€’, ‘’); }

Please elaborate more informations about your issue.

  1. Where do you have your CURRENCY-SYMBOL (where it is located) ?
  2. Are you talking about / using → Wix-Stores?
  3. Is it placed on one of your normal pages (inside an element) ?
  4. Do you use it inside an HTML-Component.

There are so many possibilities, how your set-up could look like, which you do not describe.

Describe your situation more detailed, if you want to get a good answer.

  1. Perhaps you may also use JavaScript instead of HTML-Code to replace your Currency-Symbol?
  2. Perhaps you may to use one of many given NPM-Packages which can solve your problem ?
  3. Perhaps you can solve it by using → Reg-Ex ?
  4. And so on …

The code you posted will not work unfortunately.
the line:

 document.querySelectorAll('.price, .currency');

Will only find elements on the page that have a class of price or currency, eg:

<span class="price"></span>

I don’t believe you can use classes on wix elements unless you add your own html code or custom element. You could possibly try using the nodeList and iterate through every node on the page to find what you need but this would considerably slow down the page.

I would presume you are using wix Stores to list your products. if this is the case then you are extremely limited to what you can customise. you would need to rebuild EVERYTHING yourself to accomplish this.
The usual massive undertaking for a minor functionality, on here!!

To answer your initial question, you would need to paste this code into the code panel that appears when you activate dev mode in the editor.