Support

Home Forums Event Espresso Premium Change Twitter Message

Change Twitter Message

Posted: September 27, 2013 at 4:46 pm


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

  • Support Staff

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

  • Support Staff

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

  • Support Staff

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!

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