Support

Home Forums Event Espresso Premium can I edit the Wait List popup window?

can I edit the Wait List popup window?

Posted: January 27, 2022 at 3:22 pm

Viewing 12 reply threads


Allen

January 27, 2022 at 3:22 pm

Hey there, basic question: how do I edit the text that pops up with the signup form?

I have tried adding the code below, that I found in your documenation – but, it does not seem to work?

You can see the popup on this page: https://superbilliardsexpo.com/events/womens-2022/#

// Edit Wait List PopUp

function my_waitlist_filter_gettext( $translated, $original, $domain ) {
    
    if( $domain == 'event_espresso' ) {    
        // This is an array of original strings
        // and what they should be replaced with
        $strings = array(
            'Sign Up For The Wait List' => 'Join the Wait list', // button text
            'Join Now' => 'Wait List Registration', // main heading
            'The Wait List feature is for ADVANCE ONLINE ENTRIES ONLY - and it expires one week prior to the Expo.' 
                => 'Please enter your information and we will be in touch. You will have 3 DAYS to enroll once we email you. This does not guarantee you a spot. If you do not see or respond the email in time, your spot may be released.',
            'Preferred Option' => 'Preference', // field label
            'Join The Wait List' => 'Sign me up', // submit button text

            // Add some more strings here
        );
    
        // See if the current string is in the $strings array
        // If so, replace its translation
        if ( isset( $strings[$original] ) ) {
            // This accomplishes the same thing as __()
            // but without running it through the filter again
            $translations = get_translations_for_domain( $domain );
            $translated = $translations->translate( $strings[$original] );
        }
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'my_waitlist_filter_gettext', 10, 3 );


Tony

  • Support Staff

January 28, 2022 at 4:02 am

Hi there,

I can’t see a waitlist popup form on that page?

Do you mean this section? https://monosnap.com/file/FppOmeFJpUmfIgc9OK9ZnsCHMvAkAc

If so that text isn’t from Event Espresso and looks like an elementor tab which you can edit on the page itself.


Allen

January 28, 2022 at 9:16 am

no – the pop-up when someone clicks “join wait list”

https://www.dropbox.com/s/t1cdfnwysp3vu1o/popup.jpg?dl=0


Allen

January 28, 2022 at 9:16 am


Tony

  • Support Staff

January 28, 2022 at 10:13 am

Where do you see that button?

I don’t see a join waitlist button and can register as normal:

https://monosnap.com/file/yLw8b5i78PZ6DyDGkLXXp1cou00cJ8

But either way, which text are you looking to change?

'If you would like to be added to the wait list for this event, then please enter your name and email address, and we will contact you when spaces become available.' => 'Your text here',

Added to the above function will change the default text to ‘Your text here’


Allen

January 28, 2022 at 11:58 am

I posted an image – its right above your reply.

WHEN THERE IS A WAIT LIST BUTTON – I assume you know the button only appears when the event is full. And when the button is pressed, a pop-up pops up. Is how the software you guys created works.

Try this event- this one is still sold out: https://superbilliardsexpo.com/events/supersrs2022/


Tony

  • Support Staff

January 28, 2022 at 3:52 pm

I posted an image – its right above your reply.

That’s an image of the popup, not the button.

I can’t check the content of the form if the form isn’t there which is why I asked.

WHEN THERE IS A WAIT LIST BUTTON – I assume you know the button only appears when the event is full. And when the button is pressed, a pop-up pops up. Is how the software you guys created works.

I think you hit your caps lock button there.

Obviously I know how the software works considering I’ve written parts of and explained in detail how that button works in your other post but I’m also not going to crawl through your site finding other instances of the ticket selector when you’ve linked to an event to view something that isn’t there.

In any case, the solution is the same, you add the code I gave you above and alter the text to suit.


Allen

January 28, 2022 at 4:10 pm

That’s an image of the popup, not the button.

Yes, I’m aware. That is what I am trying to edit. The pop-up. NOT the Button. I want to edit the popup.

And YES, those were capital letters because this is so frustrating and I feel like you are not reading my message clearly. And every time I post, I have to wait hours for a reply. This question should be easy to answer. We are both wasting way too much time on this.

I want to edit the text in the popup

The code is not working

Or, I am doing something wrong. Clearly I am.

I pay for your software. I have been for years. I use this archaic system for support that brings work to a halt waiting for answers. You could at least take the time to look at the link I sent. That event is sold out.

In fact, you don’t need to look at the link. You obviously know what the popup looks like.

PLEASE.

jeesus this is ridiculous. I feel like you’re just trolling me at this point. Great way to treat a customer.


Allen

January 28, 2022 at 4:26 pm

okay, I think I figured it out.

I’m sorry, I didn’t realize you provided a code snippet in that post where you said you couldn’t see a button. The code snippet looked like a quote of what I originally sent you, and since it followed a question, I thought it was a block quote thing.

Sometimes I think you guys assume that we have a better understanding of coding. I do not. It needs to be spelled out very clearly to make sense.

I’ll say it once again – phone support would be a HUGE bonus. Alleviate all this senseless back and forth and miscommunication and waste of time. I am sure many others, like myself, would even pay for it.


Allen

January 28, 2022 at 4:28 pm

So now – can I format that text in the pop-up? I tried this, to make text bold, but it did not work, the code just rendered in the text on front-end

‘If you would like to be added to the wait list for this event, then please enter your name and email address, and we will contact you when spaces become available.’ => ‘Please enter your information and we will be in touch. <b>You will have 3 DAYS to enroll once we email you.<b> This does not guarantee you a spot. <br><br> If you do not see or respond the email in time, your spot may be released.’ // text on the pop up form


Tony

  • Support Staff

January 28, 2022 at 4:35 pm

Again, I can’t advise on the content I can’t see and I do need to see the content on the page itself to know for sure if something will work. People use all kinds of phrases that mean something completely different to me, or point to a location which to me means X but them is Y. So no, I’m not trolling you, I simply need to confirm what you want to change, confirm that output on the page and give you a solution.

Without that, I can guess, which is exactly what I did above but to confirm what you are referring to hasn’t been changed by something else to check the source code of the page when it’s output.

I’m sorry you feel I’m not reading your questions, all I’m trying to do is actually confirm the content on your site. I did indeed check your links and have checked and triple checked the example I gave you to confirm it works.

Here is an example of the code I gave you in your snippet taken from a local test site that works as expected:

https://gist.github.com/Pebblo/4ca1d5368ea752ec53ddca0cdfa418ba

Here using that snippet: https://monosnap.com/file/YV76A4psgj20z7lPixqFnnyaL4z1iI


Tony

  • Support Staff

January 28, 2022 at 4:56 pm

Ok, if you want to add HTML content to the strings it changes things as HTML content is filtered on translations to prevent XSS attacks through the translation itself.

You’ll need a different snippet to do the above.

Just to confirm, is that the exact text that you want to output:

"Please enter your information and we will be in touch. <b>You will have 3 DAYS to enroll once we email you.<b> This does not guarantee you a spot. <br><br> If you do not see or respond the email in time, your spot may be released."


Tony

  • Support Staff

January 28, 2022 at 5:25 pm

For the above example you need a different snippet like this:

https://gist.github.com/Pebblo/4ca1d5368ea752ec53ddca0cdfa418ba#file-waitlist_form_notice_html_filter-php

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Viewing 12 reply threads

The support post ‘can I edit the Wait List popup window?’ 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