• Resolved Menno1987

    (@menno1987)


    I’ve been searching for the right files for about 2 hours but I can’t figure it out … how do I set up custom template files for a single-event?

    I’m running a child theme and created a folder there:
    hemmingway-child/tribe/events/single-event

    I also checked out the v2 folder
    hemmingway-child/tribe/events/v2

    the events manager v 5.7.1

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Truman

    (@tdorn)

    Hi there,

    I would be happy assist, this is our guide on editing for the newer calendar views: https://theeventscalendar.com/knowledgebase/k/customizing-template-files-2/

    The top portion of that shows where they are, so it depends on if you are using the block editor or not

    /the-events-calendar/src/views/single-event.php
    /the-events-calendar/src/views/single-event-blocks.php

    “To override these files the copy should be placed in /tribe-events and /tribe-events/pro respectively. For further details please check out the guide to customizing template files for Views 1.”

    Please let me know if that helps!

    Thread Starter Menno1987

    (@menno1987)

    What do you mean with block editor? Like the theme or wordpress or something?

    Thread Starter Menno1987

    (@menno1987)

    ok, I created a the following folders in my child-theme folder
    tribe/events/

    In there I put the following:
    single-event.php
    single-event-blocks.php
    single-event (folder)

    Editing any of these doesn’t seem to do anything. I’m I trying to edit the right files? Is it getting stuck in the cache or something?

    Plugin Support Truman

    (@tdorn)

    Hi there,

    So you do not need all 3 of these, the blocks file is only when using the Block Editor (Gutenberg) so it will depend on your setting under Events > Settings > General > Activate Block Editor for Events. IF you aren’t using it, use the “single-event.php” file.

    Are you still using the “Legacy Views” or “V1?” /tribe/events/ is what you will want for this, but if you are using the V2 or updated calendar views (which we highly recommend), you will want to use /tribe/events/v2.

    So you will want to find the file under /the-events-calendar/src/views/single-event.php , copy single-event.php , edit the copy and then place the copy under /tribe/events/ or /tribe/events/V2 , does that make sense?

    So your final file path should look like /tribe/events/v2/single-event.php and that file is an edited copy

    Normally we do not provide support for customizations, but I want to at least make sure you are placing the files in the right place.

    Thread Starter Menno1987

    (@menno1987)

    Hi Truman,

    I’m still not succesful.
    Block mode = off
    Updated calender design = on
    I placed the single-event.php in –
    theme-child/tribe/events/v2/single-event.php

    Still tho, when I edit anything in that file, it doesn’t seem to effect anything on the single event page. For ex. when I remove the title function, the title is still there. When I add en element, it’s not apprearing on the page. I sort of have a feeling I’m trying to edit the wrong template file, is that possible?

    These are the classes from the <body> tag, so I was guessing this is the right template?
    <body class="tribe_events-template-default single single-tribe_events postid-190 logged-in wp-custom-logo tribe-events-page-template tribe-js tribe-filter-live">

    Plugin Support masoodak

    (@masoodak)

    Hi,

    Terribly sorry for the long delay in getting back to you.

    If you are using V2 or updated design views for The Events Calendar plugin, kindly start by making a copy of the following file,
    /wp-content/plugins/the-events-calendar/src/views/single-event.php

    and paste it here,
    /wp-content/themes/[your-theme]/tribe-events/single-event.php

    This is the template file you can modify to customize the single event view at the frontend.

    Kindly give it a try and let me know if this helps.

    Kind regards,
    Masood

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom template single event page’ is closed to new replies.