Title: Before HTML
Last modified: September 1, 2016

---

# Before HTML

 *  Resolved [scarci](https://wordpress.org/support/users/scarci/)
 * (@scarci)
 * [10 years ago](https://wordpress.org/support/topic/before-html/)
 * Hi,
 * i can’t use php code before events content.
    So i try to add some php in src\
   functions\template-tags\general.php in the function tribe_events_before_html().
   Now, in the calendar, i can see my script and it’s work but i can’t change month.
 * scarci
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [10 years ago](https://wordpress.org/support/topic/before-html/#post-7565393)
 * Hi [@scarci](https://wordpress.org/support/users/scarci/),
 * Sorry, I’m having a little trouble following what it is you’re looking for. Will
   you please clarify what you’re trying to add using the `tribe_events_before_html()`
   hook?
 * Speaking of which, I would highly suggest avoiding editing the plugin’s core 
   files. Those changes can be easily lost when a new update arrives.
 * Thanks!
    Geoff
 *  Thread Starter [scarci](https://wordpress.org/support/users/scarci/)
 * (@scarci)
 * [10 years ago](https://wordpress.org/support/topic/before-html/#post-7565416)
 * Hi [@geoffgraham](https://wordpress.org/support/users/geoffgraham/),
 * at the moment i have this in before html input:
    [https://www.dropbox.com/s/7rkgjplkpj58xir/3.PNG?dl=0](https://www.dropbox.com/s/7rkgjplkpj58xir/3.PNG?dl=0)
 * and the output is:
    [https://www.dropbox.com/s/xq53yholr73pnnn/1.PNG?dl=0](https://www.dropbox.com/s/xq53yholr73pnnn/1.PNG?dl=0)
 * when i click a button, it will show some contents:
    [https://www.dropbox.com/s/hu0sogotzlb29ob/2.PNG?dl=0](https://www.dropbox.com/s/hu0sogotzlb29ob/2.PNG?dl=0)
 * But if i insert a code like the first image it doesn’t work.
 *  [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/before-html/#post-7565551)
 * Hey [@scarci](https://wordpress.org/support/users/scarci/),
 * Sorry, I’m not quite following the issue. It looks like the buttons are showing
   up when adding them to the Before HTML settings box. Is there something else 
   that should happen or be displayed that perhaps I’m missing?
 * Thanks!
    Geoff

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Before HTML’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/before-html/#post-7565551)
 * Status: resolved