Modifying iCal.php

Home Forums Calendar Products Events Calendar PRO Modifying iCal.php

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1194110
    Michael Magestro
    Participant

    Im trying to add some custom buttons to the area by the Export Month’s Events so I have added iCal.php to my theme but its not providing any overrides. Please advise, thanks.

    #1194252
    Nico
    Member

    Hi there Michael,

    Thanks for getting in touch with us!

    I’m afraid you can only override view files, and not classes like iCal.php. Can you please elaborate on what you a trying to do?

    Maybe you can hook to ‘tribe_events_after_footer’ action to display the content after the export link?

    Please let me know about it and I’ll help you out,
    Best,
    Nico

    #1194590
    Michael Magestro
    Participant

    Im trying add buttons similar to the old version of the Events Calendar we had running. You can see these buttons here:

    http://ceebj.org/events/

    #1195505
    Nico
    Member

    Thanks for following up Michael!

    You can add the button by pasting this code in your theme’s (or child theme’s) functions.php file:


    /* Tribe, add button after events are rendered */
    function tribe_add_custom_buttons () {
    echo 'Need Help?';
    }
    add_action ( 'tribe_events_after_footer', 'tribe_add_custom_buttons' );

    Please note you’ll need to edit the actual HTML that gets printed and also add the proper styling to fit your site design,
    Best,
    Nico

    #1205302
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Modifying iCal.php’ is closed to new replies.