Customizing Template Files

Would you like to customize the appearance of your Sugar Calendar event archives and single event pages? Sugar Calendar allows you to easily customize these templates to match your site’s design.

This tutorial will show you how to customize the event archive and single event templates in Sugar Calendar.


Customizing the Event Archive

By default, the event archive can be found at example.com/events, displaying events in the order they begin.

To customize this archive, create a file named archive-sc_event.php in your theme’s directory. Copy the contents from your theme’s archive.php file into archive-sc_event.php, and then modify this new file to suit your needs.

Customizing the Event Category Archive

If you choose to customize your event archive, you should also customize your event category archive to ensure consistency.

To do this, create a file named taxonomy-sc_event_category.php in your theme’s directory. Then, copy the contents from archive-sc_event.php into taxonomy-sc_event_category.php and modify this file as needed.

Customizing the Single Event Pages

By default, Sugar Calendar uses the single.php file from your theme to render single event detail pages.

If you wish to customize this, create a file named single-sc_event.php in your theme’s directory. Copy the contents from your theme’s single.php file into single-sc_event.php, and then modify this new file to suit your needs.

That’s it! Now you know how to customize the event archive and single event templates in Sugar Calendar.

Next, would you like to learn how to add custom URLs to your events? Be sure to check our tutorial on adding custom URLs to events to learn how.