Adding a custom button next to google calendar and ical export buttons

Home Forums Calendar Products Events Calendar PRO Adding a custom button next to google calendar and ical export buttons

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #964736
    Neil Heird
    Participant

    Hi again. I have read several posts and haven’t found what I need, so here goes:

    I need to add a custom button to the single event page – next to the google and ical export buttons. I found a thread suggesting I hook into the code on line 63 of single-event.php, but I am not a PHP coder. I am fluent in HTML and CSS, but would appreciate a nudge as to where exactly to place my HTML for the new button.

    Hopefully that is covered by this forum.

    can you help?

    thanks in advance for your help.

    #964741
    Neil Heird
    Participant

    OK – I have tried without success to locate exactly where to place this code on the single events page

    <a class="btn" href="#">Return to Schedule</a>

    can you point me to the correct file location? I assume it goes in The Events Calendar plugin folder under Views > Single-Event.php…. correct?

    So far, the only way I have been able to add the button is via the before and after HTML boxes on the site, but CSS doesn’t allow me to position the button within the Events Info module that way.

    Any suggestions you have are appreciated.

    Page URL http://oxleyparent.com/portal/event/test-event-2/

    #964825
    Geoff
    Member

    Hi there, Neil!

    Good question. You can actually hook into that action in your theme’s functions.php file instead of directly modifying the template.

    That would look something like this:

    https://gist.github.com/geoffgraham/e2c3bb761e2530940a0b

    Please note that I haven’t tested this myself, but it should at least give you a good starting point to add your button with the others. 🙂

    Cheers!
    Geoff

    #964899
    Neil Heird
    Participant

    George,

    it worked perfectly! thanks so much!

    #964904
    Geoff
    Member

    My pleasure, happy to help! Please feel free to hit us back up if any other questions come up. 🙂

    Cheers,
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding a custom button next to google calendar and ical export buttons’ is closed to new replies.