Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Change text of reserve button to book.
- This topic has 12 replies, 2 voices, and was last updated 3 years, 3 months ago by Andre Flores.
- AuthorPosts
- July 30, 2021 at 7:45 am #1164353Daniel PerryParticipant
Apologies if this has been answered elsewhere I did try a few searches but could find anything.
On the search results page, there is a button underneath the recommended section to reserve the recommended, however this diverts to the booking page (which is fine). Is it possible to change the text of this button from “reserve” to “book”?
Thanks
DanAugust 2, 2021 at 3:29 am #1165145Andre FloresModeratorHello Daniel,
You may change the button text via Loco Translate plugin. You will find an example of how to do that in this article.
Regards,
AndreAugust 2, 2021 at 5:02 am #1165210Daniel PerryParticipantIs there a way to do this without adding another plug-in?
Maybe a php snippet or something?
Thanks
DanAugust 3, 2021 at 1:14 am #1165662Andre FloresModeratorHello Daniel,
Sure, you may perform translations directly in language files. Use the .po language file for the language in question under /wp-content/plugins/motopress-hotel-booking/languages/ directory to perform necessary changes. It is recommended to copy edited .po and .mo files to /wp-content/languages/plugins/ directory after that in order to avoid loosing changes after the plugin update.
Check this article on how to manage .po and .mo files.Regards,
AndreAugust 3, 2021 at 1:36 am #1165680Daniel PerryParticipantThats great thanks, I don’t see an “EN” suffix version of the file though? Which files do I edit for the English translation?
Cheers
Dan
August 9, 2021 at 7:38 am #1168312Daniel PerryParticipantnudge nude, can someone respond please, I really need to get this sorted, thanks again
August 12, 2021 at 5:22 am #1169854Andre FloresModeratorHello Dan,
Kindly provide me with your website URL and temporary access to WordPress dashboard in a private reply, so I check it for you.
Regards,
AndreAugust 12, 2021 at 6:36 am #1169912Daniel PerryParticipantThis reply has been marked as private.August 16, 2021 at 3:11 am #1171389Andre FloresModeratorThis reply has been marked as private.August 16, 2021 at 3:28 am #1171397Daniel PerryParticipantFantastic, thanks very much for doing that 🙂
However it would be handy to know how to do this, as there are a couple of other pieces of text I would like to change for example, changing “CHOOSE ADDITIONAL SERVICES” to something like “choose your extras”.
Thanks again for the support
Dan
August 18, 2021 at 3:30 am #1172481Andre FloresModeratorHello Dan,
You now have motopress-hotel-booking-en_GB.po file under /wp-content/languages/plugins/ directory, you will need to edit the file locally in your machine with Poedit software and perform necessary changes to it. Once changes are saved, you will get new .mo file generated, make sure to replace current .mo file with it as well, so changes are applied.
Regards,
AndreAugust 18, 2021 at 6:39 am #1172580Daniel PerryParticipantPerfect thank you so much 🙂
August 19, 2021 at 4:03 am #1172878Andre FloresModeratorYou are most welcome 🙂
It would be very much appreciated if you share your positive feedback about the Hotel Booking at: https://www.trustpilot.com/evaluate/www.getmotopress.com.Thank you in advance!
- AuthorPosts
- You must be logged in to reply to this topic.