• Resolved marketpush

    (@marketpush)


    <select id=”advert_category” name=”advert_category”>
    <option value=””>- Choose Category -</option>
    <option value=”44″>Category 0</option>
    <option value=”42″>Category 1</option>
    <option value=”41″>Category 2</option>
    <option value=”39″>Category 3</option>

    This is how it looks when I inspect the dropdown element of the “Create ad” page. How can I translate the – Choose Category – label into my language?

    I need it to say – V?lj Kategori – instead!

    Cheers

    • This topic was modified 6 years ago by marketpush.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    it seems you already have it customized somehow because by default when the empty option is shown it has an empty value.

    If you are using Custom Fields extensions to customize the form then edit the [adverts_add] form, the click edit next to the Category field and check the value in “Empty Option Text”, it should be set to “– V?lj Kategori –”.

    If you are not using Custom Fields then it would be best to look for the code which adds the empty option to the Category dropdown (probably it will be in the theme functions.php or installed as a separate plugin) and customize the empty_option_text there.

    Thread Starter marketpush

    (@marketpush)

    Hey,

    Thanks for your reply!

    So, I am using custom fields actually. Now I tried what you said about configuring the “Empty option text” however, the change doesn’t reflect on the front-end even if I did exactly what you said. I also tried to change another setting in the same form, and that change pushes through to the front end. So, something is weird I think.

    I’m looking in my functions.php but I don’t believe it’s in there either.

    Thanks in advance!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i can’t really replicate this issue, setting the Empty Option Text in the Custom Fields configuration changes the text in the frontend form for me.

    Also, i cannot find the phrase ‘- Choose Category -‘ anywhere in WPAdverts or WPAdverts extensions files, so, i am pretty sure it is being added via some filter.

    If that is the case then most likely you will find this phrase in the theme functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate -Choose Category- dropdown’ is closed to new replies.