Changing Special Offer tab title

This topic contains 8 replies, has 3 voices, and was last updated by  Paolo 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #32198

    Dan Leach
    Expired Member
    Post count: 10

    How can I change the “Special Offer” tab title. I have tried changing it in languages.php and custom_functions.php but no matter what I do it the label is still “Special Offer”.

    Where do I change it?

    I have done a search on the forum and found a couple of people who have had the same problem but no clear solution.

    Thank you
    D

    #32199

    Simone
    Expired Member
    Post count: 3515

    Hello Dan, it is simpler than expected. You can change it using the .po file inside your geodirectory folder.

    Use this guide here, it works also for a rephrase of a string, not only for a translation.
    http://docs.wpgeodirectory.com/translate-core/

    #32214

    Dan Leach
    Expired Member
    Post count: 10

    Thanks Simone,

    That all made perfect sense. Made the changes, popped it into the right folder. Still not working though. I suspect the issue is that it can’t find the .mo file. When I looked at where it was looking, it is looking for:

    geodirectory/homepages/44/d566176003/htdocs/clickandbuilds/[HIDDEN SITE NAME]/wp-content/languages/geodirectory/geodirectory-en_GB.mo

    This is taking the code from the geodirectory.php file.

    I suspect it should be:

    /clickandbuilds/[HIDDEN SITE NAME]/wp-content/languages/geodirectory/geodirectory-en_GB.mo

    Although I have tried putting this address in the geodirectory.php file but it doesn’t seem to find it.

    D

    #32215

    Simone
    Expired Member
    Post count: 3515

    copying the .po/.mo files inside wp-content/languages/geodirectory should work, have you tried to delete the cache in your browser?

    #32216

    Dan Leach
    Expired Member
    Post count: 10

    Cleared the cache and it helped (thank you). It is now translating – “Special Offer” has now become “Announcement” across the site expect the tab on listing detail.

    The tab still says “Special Offer”.

    It’s so strange.

    #32220

    Simone
    Expired Member
    Post count: 3515

    You can translate that label by going into the post type settings (e.g. Place Settings), expanding the Special Offer field and setting a different Frontend title

    #32221

    Dan Leach
    Expired Member
    Post count: 10

    It worked. Thank you for you time and attention.

    #32251

    Simone
    Expired Member
    Post count: 3515

    You’re welcome.

    #32267

    Paolo
    Site Admin
    Post count: 31206

    Just FYI, the mo file is generate when you save the edited po file with a software like poedit.

    Thx

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount