Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Change Twitter Message | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Change Twitter Message

Change Twitter Message

Posted: September 27, 2013 at 4:46 pm

Viewing 6 reply threads


Sarah Rogers

September 27, 2013 at 4:46 pm

Hello there,

I’m trying to change the twitter message by altering espresso-social.php (so far I’ve put the twitter code into custom-shortcodes.php – but my data-text never changes. Any ideas why?

Thank you!


Josh

September 27, 2013 at 5:30 pm

Hi Sarah,

Have you tried changing the twitter message by using the Event Espresso social add-on settings?


Sarah Rogers

September 27, 2013 at 5:33 pm

In Event Espresso Social the only options I see are for my username, countbox & language…


Josh

September 27, 2013 at 5:41 pm

What are you looking to change Sarah?


Sarah Rogers

September 27, 2013 at 5:57 pm

The data-text.


Josh

September 27, 2013 at 7:35 pm

So the reason why the changes don’t work is because the espresso-social plugin loads before Event Espresso, which in turn loads up the files from /wp-content/uploads/espresso/.

While the plugin’s author left comments about using the Custom Files add-on to override its functions, they may not have realized this.

What you can do is load up your custom function in its own little plugin. The added bonus is you can activate/deactivate it if need be without FTPing in.

Here’s a gist that will help you get on your way:

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

You can edit line 20, name the file something like custom-tweet-buttom.php (the name needs to fall in an alphabetized list *before* espresso-social so it will load before it), then upload the file to wp-content/plugins and activate.


Sarah Rogers

September 30, 2013 at 6:36 am

That works beautifully Josh – thank you so much!

Viewing 6 reply threads

The support post ‘Change Twitter Message’ 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 - Staging Server