• Resolved Meet Shah

    (@meet1347)


    Hi there, the default single layout of the plugin is good but I need to change the design of that layout according to the design given by my client so I need to create a custom single layout for single events.

    I am not getting how to over-ride it.

    I gave name single-events.php, single-tribe_events.php then I did add them as ‘child-theme/tribe-events/single-events.php’ then it was breaking the default layout of the theme.

    I am not being able to apply my own layout, please help me in this, provide me a name of the file and location (hierarchy of template in child theme)

    Thank you in advance.

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Brook

    (@brook-tribe)

    Howdy Meet,

    It sounds like you are well on your way here. ??

    I gave name single-events.php, single-tribe_events.php

    What do you mean by this? Did you rename the original file? If so you would want to rename it back. You should never need to modify or rename any files within the plugin folder when doing theme overrides. You might just reinstall the plugin to be safe.

    I did add them as ‘child-theme/tribe-events/single-events.php

    That is the correct spot for the new file. Assuming your child theme is active then you should be golden, any changes you make here (assuming no files were added or modified in the plugins folder) then they should appear. If they are not, you might need more in-depth support than I can provide here or perhaps you can consult your WP Theming expert to assist. The override system we use is pretty standard so anyone versed with themes is likely qualified to assist.

    Cheers!
    – Brook

    Thread Starter Meet Shah

    (@meet1347)

    Hey Brook, thanks for the reply.

    I gave name single-events.php, single-tribe_events.php

    with that I meant, what should be the name of the file, single-events.php or single-tribe_events.php ? And I have added this file to my child theme only, I am not changing anything in plugin.

    and yes, my child theme is activated and I have created a hierarchy in this way, ‘child-theme/tribe-events/single-events.php’ but it still shows the default single layout of plugin as broken structure.

    Hey there!

    It should be the same file name that it was copied from. So, it sounds like it should be this:

    single-event.php

    Cheers!
    Geoff

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I need to override single-events template’ is closed to new replies.