Adding PHP code to defaults events template and removing ICal function

Home Forums Calendar Products Events Calendar PRO Adding PHP code to defaults events template and removing ICal function

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70711
    siggiboy81
    Participant

    I am using the default events template and would like to add a php code to the template so that some share buttons will be visible on the actual events page. What file do I need to edit to be able to add such code?

    I would also like to remove the +Google Calendar and +ICal from all over the site. How can that be done?

    #70874
    Chris
    Participant

    To remove the links, paste this: https://gist.github.com/chriscct7/5259e6380b43df0fde2d
    minus the <?php into your theme's functions.php file.

    For custom PHP code, you'll need to use custom templating.

    Our theming guide is here: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Unfortunately we can't help with custom theming as it falls outside the realm of support.

    #71018
    siggiboy81
    Participant

    Hello! I have tried to add the code, but it is still fully visible at the page: http://www.hungarybudapestguide.com/event/lunch-cruise-danube-2-2-2/

    There you can see an example, and the +Google Calendar +iCal Import is still there… Any further advice?

    #71297
    Chris
    Participant
    #71334
    siggiboy81
    Participant

    Thanks a lot! This got it working! 🙂

    #71466
    Kelly
    Participant

    So glad to hear it, siggiboy81. Since you’re all set here, I’m going to close this thread. Please open a new one if anything else comes up! 🙂

    #981717
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Adding PHP code to defaults events template and removing ICal function’ is closed to new replies.