Change button text from "I'm Attending" to "Sign Up"

My client's site visitors cannot understand that clicking "I'm Attending" means "Sign Up". How can I easily change the button text, and will I have to change it every time there's an update to the plugin afterward?

It would also be helpful if you could add some text before and after the events listings. My client would like to put her phone number below the listings (for questions), and some instructions above the listings.

  • Ash
    • WordPress Hacker

    Hello @ncdesignz

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    For showing sign up, please add the following code in your theme's footer.php:

    <script type="text/javascript">
    jQuery(function($) {
        $('.wpmudevevents-yes-submit').val('Sign Up!');
    });
    </script>

    You don't need to update this every time.

    For the extra text in listings, you need to edit plugin code and you need to do the same things after every update. Are you open to do this? Please let me know.

    Hope it helps! Please feel free to ask more question if you have.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    Well, I just found a filter that you can use in your theme's functions.php so you don't need to touch plugin code. You can try like this:

    add_filter('eab-template-archive_after_view_link', 'send_number');
    function send_number() {
    	return 'For more info please contact at XXXXXX';
    }

    It will add this text at below of each listing.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    This is strange. Would you please grant support access from your Dashboard > WPMU DEV > Support > Support Access so that I can check?

    Alternatively, send me login details.

    To send me details, please use our contact form: https://premium.wpmudev.org/contact/

    Select: I have a different question
    Subject: Attn-Ash
    Details: Send all required details (admin info and/or ftp details) with a link of this thread, so that I can track.
    Also post a note here once you send the info.

    I will be happy to take a look :slight_smile:

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    Please check now.

    Updated code:

    <script type="text/javascript">
    jQuery(function($) {
    
    if($('a.wpmudevevents-yes-submit').length)
        $('.wpmudevevents-yes-submit').html('Sign Up for this Class');
    else
    	$('.wpmudevevents-yes-submit').val('Sign Up for this Class');
    
    });
    </script>

    Please note that, this changes will be lost in next update. So it's worth to note down this changes somewhere and apply again after your updates.

    Please let me know if you find this is helpful, or if you have any further questions.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    I didn't want to mention about mu-plugins as you may think it is complex. But here is the solution if you are interested:

    To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always.

    <?php
    add_action('wp_footer', 'set_script');
    function set_script() {
    ?>
    <script type="text/javascript">
    jQuery(function($) {
    
    if($('a.wpmudevevents-yes-submit').length)
        $('.wpmudevevents-yes-submit').html('Sign Up for this Class');
    else
    	$('.wpmudevevents-yes-submit').val('Sign Up for this Class');
    
    });
    </script>
    <?php
    }

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.