Support

Home Forums Event Espresso Premium Change pop up messages

Change pop up messages

Posted: August 2, 2016 at 10:31 pm

Viewing 4 reply threads


Robert Gambino

August 2, 2016 at 10:31 pm

Question 1

So I used the plugin suggested method but its not changing all the text, I chanced and add the string ‘tickets’ to Classes But its clearly still tickets. Where or how can I just do the customized message? if I paste the whole thing than do it like that is still doesnt work.

An error has occurred:
You have attempted to purchase 2 tickets but that would result in too many tickets in the Class Cart for this event.
The registration limit for this event is 1 ticket per transaction, therefore the total number of tickets you may purchase at any time can not exceed 1.

Question 2

Where is the GEAR the icon that spins where can I find that to change it? Thanks!


Tony

  • Support Staff

August 3, 2016 at 4:56 am

Hi there,

An error has occurred:
You have attempted to purchase 2 tickets but that would result in too many tickets in the Class Cart for this event.
The registration limit for this event is 1 ticket per transaction, therefore the total number of tickets you may purchase at any time can not exceed 1.

Turns out those strings can’t be translated currently, we’ll get that fixed with an update.

Note that translating ‘tickets’ to something else, will not change all instances of tickets to your translated version. Each string output is unique and so much be translated, so translating ‘Tickets’ would not translate ‘Select Tickets’ as they are different strings.

Question 2
Where is the GEAR the icon that spins where can I find that to change it? Thanks!

The gear icon is a dashicon:

https://developer.wordpress.org/resource/dashicons/#admin-generic

You can change that to another icon, for example:

https://developer.wordpress.org/resource/dashicons/#admin-site

Using something like:

.ee-spinner:before {
    content: "\f319";
}

If you want to use another icon you can replace the above with your own icon.


Robert Gambino

August 3, 2016 at 9:01 am

OK thanks! I need to change the tickets tho to classes or I am royally screwed, where can I find this? Any idea. I don’t care if I hard code it right now.


Josh

  • Support Staff

August 3, 2016 at 9:39 am

Hi Robert,

You can indeed change those strings by using the ngettext filter hook. Here’s a readymade code example that shows how:

https://gist.github.com/joshfeck/d89b844cfadd4da9d8889bf2f111028c

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


Robert Gambino

August 3, 2016 at 10:03 am

THANKS! I created my own plugin, works much better thank you!

Viewing 4 reply threads

The support post ‘Change pop up messages’ 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.

Event Espresso