Display category on photo view

Home Forums Calendar Products Events Calendar PRO Display category on photo view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1608652
    franknip
    Participant

    Hello,

    I would like to display the event category on the photo view. Is it possible to do this in the settings option or can it be done using PHP code ? Thank you for your answers.

    Regards

    Giles

    #1609982
    Sky
    Keymaster

    Hi there,

    Thanks for reaching out! I’d be happy to help with your question.

    While there is not a setting for this, it is possible with a bit of customization. You can read more about how to customize event calendar views by visiting this article: https://theeventscalendar.com/knowledgebase/themers-guide/

    Basically, you would copy the file from plugins/events-calendar-pro/src/views/pro/photo/single-event.php to [your-theme]/tribe-events/pro/photo/single-event.php. You can make your modifications there, and your custom template will be used instead of the default.

    You can use the function

    <?php echo tribe_get_event_categories() ?>

    to output a linked list of categories within the single event.

    Hope that helps! Please let me know if you have any additional questions about this.

    Thanks,
    Sky

    #1610379
    franknip
    Participant

    Hello,

    Great ! It’s done. Thank you very much. Best regards. Giles

    #1610734
    Sky
    Keymaster

    Hi again,

    Awesome! So glad that helped!

    Please let us know if you have any questions or issues in the future.

    Thanks,
    Sky

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display category on photo view’ is closed to new replies.