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(‘€’, ‘’); }
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.
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.
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.