• Resolved mnpdev

    (@mnpdev)


    Hello,

    I try to edit the default template file so I can restyle it so it fits in the website. But when I edit the default-template.php file only the event single pages changes. The event list page doesn’t add the changes. If I empty the php file, the page still shows all the content.

    Does the event list page uses another php file of another template for displaying the content?

    Let me know.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @mnpdev

    Each view (and sometimes sub-components) of views have their own template.
    Each of those templates can be overridden.

    You can read more about that here: https://theeventscalendar.com/knowledgebase/guide/customization/

    Cheers,
    Geoff

    Thread Starter mnpdev

    (@mnpdev)

    Hello Geoff,

    I found the default-template.php for the overview page. The overview page uses the file in v2 folder. Is that correct that the overview and the single pages uses different php files?

    Best regards.

    Plugin Support masoodak

    (@masoodak)

    Hi @mnpdev,

    The single event page uses following template file,

    /wp-content/plugins/the-events-calendar/src/views/single-event.php

    I believe by overview you mean to refer to the main events page. If yes, then kindly note that each view (month, list, day) uses a different template file.

    For list view it’s this one,

    /wp-content/plugins/the-events-calendar/src/views/v2/list.php

    Hope this helps.

    Kind regards,
    Masood

    Thread Starter mnpdev

    (@mnpdev)

    Hello Masood,

    Thank you for clearing it all up.
    It works perfectly for me!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Event list template’ is closed to new replies.