Posted: September 2, 2013 at 8:10 am
|
On the booking for an even page which file do I need to edit to take away the ‘Add more attendees’ – cut out ‘click to toggle’ and remove ‘?’ On the page for visitors to book an event which file in filezilla do I need to edit? I want to alter the text where it says “Add more attendees – click to toggle’ Many thanks! 🙂 |
Hi Miranda, The ‘Add More Attendees’ phrase is created within core files of Event Espresso. It is not recommended to edit core files. The best option in this case I think would be to ‘translate’ the phrasing to suit your needs. We have documentation regarding translating Event Espresso here https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ |
|
|
Many thanks, Tony, but for some bizarre reason Poedit won’t work on my computer – nor on my daughter’s computer! (I asked her to instal as it would n’t work on mine, but same result) It installs but will not work. I also contacted the creator but no joy. So could you answer my original question please as I need to alter the text, also could you say why it’s not advisable to alter the core files? Many thanks. |
Hi Miranda, You can also use the gettext filter to change text strings. Here is some example code that can be adapted and added to your theme’s functions.php file. |
|
|
Well, thank you all very much for your input. I’be had a look at the plugin for changing the text, and yes it’s tempting to use, but quite honestly I don’t want to as each plugin can be asking for future trouble when there are wp updates etc. I prefer to change the text so I know it’s changed for good and no worry for the future. Could someone please tell me which exact file I need to make this change? |
Hi Miranda, It is not advisable to alter core files as there is no ‘update safe’ way to do so and the fact that alterations/customization’s made to core files/functions can not be supported by ourselves so if you run into further problems down the line, one of the steps support will take is to ensure all modifications (not within templates) are removed as we can not be sure of other implications. I know this is just a simple text change and sounds trivial, but these quickly lead to other seemingly simple customization’s which turn out to crash the entire plugin. This is not to scare or even put you off this alteration, but simply to make you aware of this beforehand. If Poedit doesn’t work you next best is the plugin mentioned above, that plugin makes use of a core function of the translation framework meaning it should be more WP update safe… Having said all that, the line you want to edit is: event-espresso/includes/functions/main.php line 161. The modification will be lost after each EE update so will need to be re-done. |
|
|
Tony, thank you very much for your indepth explanation which has helped although I’m far from being able to move ahead. Although generally I’ve enjoyed my journey with coding, I’ve just been learning from doing and there is an enormous amount that I don’t understand. Jonathan’s help above is beyond me, as in I have no idea where I would start to implement the info he gave. Although I haven’t searched yet for tutorials on youtube (I will be doing so) on how to use the plugin Quick Localization, again I just don’t understand how to use it. I could understand all these things with time but time is something I don’t have. I am incredibly late delivering this site and they have a committe meeting next thursday and are, rightly, expecting the site to be ready. The more things I fix, the more things go ‘wrong’ …I’m just drowning at the moment. My daughter got me the job so it’s her name that’s on the line, which is making it a bit nightmarish. Any more help on how to use either Jonathan’s suggestion or the Quick Localisation plugin (or are they one and the same thing?? or used together??) will be enormously appreciated. Many thanks for your time and patience. |
Hi Miranda, I you look at the code snippet that Jonathan posted on lines 6 & 7 you’ll see a few examples of how to change wording. On line 6 you’ll see the word Register get changed to Sign up. You can remove lines 6 & 7 from the example and replace with: 'Add More Attendees? (click to toggle, limit %s)' => 'Add More Attendees' The the entire function can be copied and pasted into your custom_functions.php file located in /wp-content/uploads/espresso/. If there isn’t already a custom functions file there, you can make a new one. Just before the functions starts you’ll need to add a first line that reads:
|
|
|
Just bumping again, so thread doesn’t close (apologies again Josh!) |
|
Hi, Is there something I can help you with? Did Josh’s answer not resolve the issue? |
|
Hello Dean and thank you for responding so quickly. The forum post I have given for the support ticket is this one: Although that issue has been half-solved, the remaining part of it hasn’t – which is: When one is NOT logged in, one can read the full info of the event …BUT when one IS logged in, all registration buttons and links disappear and one is told to login. It is just making a (horrible!) loop 🙁 |
|
Hi Miranda, I believe Tony has been dealing with this via a Priority Support Token, he says he emailed you with details. |
The support post ‘Which 'file.php' do I need to edit to alter this text?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.