Support

Home Forums Event Espresso Premium Change "Register Now" text for single event

Change "Register Now" text for single event

Posted: February 4, 2019 at 9:04 am


ncmensspringretreat

February 4, 2019 at 9:04 am

Is there by chance CSS that will change the text of the “Register Now” button to “Apply Now” for a single event only?


Tony

  • Support Staff

February 4, 2019 at 9:42 am

Hi there,

Not with CSS no, but you do can do it with a PHP snippet, see:

https://gist.github.com/Pebblo/6ca533539b2ed37ed88801825fdd2f2f#file-functions2-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/

Change Line 12 to the text you want to use, you could have:

$btn_text = __( 'Apply Now', 'event_espresso' );

Or even just

$btn_text = 'Apply Now';

Then in the event you need to add a custom field to tell that function to change the text, like so:

Add new custom field – https://monosnap.com/file/js1gWgxEAHEeznrg64dMkKFfxpFxUg

Set ee_custom_register_text to true – https://monosnap.com/file/QBwIm9WiYeBABltLtxqJu2XtYKAXru

It should look like this – https://monosnap.com/file/vzgr2CdLWkBvH9cNfS6fcMuZLpVvh7

Any event you set that on will display ‘Apply now’

The support post ‘Change "Register Now" text for single event’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 weeks, 3 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!