Change text in select field with Woocommerce

Asked

Viewed 227 times

1

I would like to know how to change the "button" from "choose an option" to "choose a size". Depending on the image below. inserir a descrição da imagem aqui

  • You have access to FTP where the site files are?

  • I have, in case I don’t know how to find the specific file

  • Maybe if you put all the source code of this page that you posted the image, it is possible to check.

  • I couldn’t copy ... you crossed the line,... but you can take this link.. if possible pfv... https://www.tortugashoes.com/producto/catamaran-corchoyblanco/ this online

  • There on the page, open the console (F12) and execute this command: document.getElementById('pa_tamanho').options[0].innerHTML = "Escolha um tamanho";. A stopgap would be that you put this script at the end of the "index" file of the "products" folder, until you figure out where to change it in your website’s HTML.

1 answer

0

Since you didn’t publish codes I’ll give you my help as I can, a good way is to use the f12 keyboard and then pricing this icon: inserir a descrição da imagem aqui

After pressing this icon click on combobox(choose an option), and the code of the combobox something like the image below: inserir a descrição da imagem aqui

In this area of the code identify the name "choose an option" and replace with "choose a size". If it worked now just need to look it up on your local web page where you are working on it, which have the same code structure.

The images are just to help identify things are not an exact recreation.

ATTENTION: If you want a more detailed answer you should add the page code to the question.

  • good... and as saved this to appear always.. when F5 grip back as was,

  • @J.Gualberto did not pay attention to the full answer, now he has to identify that same code in the local page file. I passed to bold the phrase.

  • Thank you very much... so that’s the point... I don’t know how to get there... as I said before.. I’m very beginner in this... you can help?

  • @J.Gualberto does not have access to the page code?

  • if you speak Cpanel, I do... but I can’t locate that part in the archives

  • @J.Gualberto when you press F12 a tab that says "sources" appears on the side has a list of all the files used on your page, see the names one by one and then look for those files, the best thing to do is to publish the page code here so that we can help you more accurately

  • I couldn’t copy ... past the limit, ... , but you can take this link.. if possible pfv... https://www.tortugashoes.com/producto/catamaran-corchoyblanco/

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.