• kevman1972

    (@kevman1972)


    I have installed the event organiser and I am using a child theme. Everythings works fine. I have customized the template files of the event magager ‘taxonomy-event-venue.php’ and ‘archive-event.php’ and copied them into the root of the child theme. Strangely I didn’t need to adapt the template ‘single-event.php’, because every single event page seemed to look pretty fine already at the frontend, so my website is still using a template there which I have in the child theme (actually the single.php file of the theme I am using is calls one of two other template files and one of them is ‘template_single.php’ and this one I have put only in the child-theme)
    Anyway, as soon as I put the files ‘taxonomy-event-venue.php’ and ‘archive-event.php’ into the root of the child theme, the pages of the event organiser will look fine in the frontend (in a correct design), but something else immediately happens in the dashboard of all other pages of the website: when you view a certain page in dashboard you will notice there that they suddenly have assigned to them a Standard Template, instead a Page with a Sidebar (for example). So all pages on the website are being ‘resetted’ to use the Standard Template somehow. As soon as I delete the event manager’s template files (taxonomy-event-venue.php, archive-event.php) from the root, everything is normal again for my other pages, but then of course I don’t have the correct design in the event organiser pages in the frontend (archive of events and event venues).
    I also tried to make a plugin folder in my child theme (plugins/event-organiser/templates) and put the files there, but the website doesn’t respond to that unfortunately. So that didn’t work either. Question 1: do need to add an action or something in functions.php to enqueue them correctly? I am not a good programmer, but I can try.
    I have made a temporarily solution now. I only have changed the templates ‘archive-event.php’ and ‘taxonomy-event-venue.php’ and put them directly into the plugin-folder on the server itself. I know this is not the nicest way to do. And that will be a hassle each time I need to make an update for the event organiser plugin in the future.. Question 2: what is the right solution for me to work with event manager plugin in my child theme, without that these templates will affect the other pages like I mentioned? Am I working correctly? Thanks a lot for help! Grtz, Kevin.

    https://wordpress.org/plugins/event-organiser/

Viewing 1 replies (of 1 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Kevin,

    To clarify, what you have done is the correct thing to do. You should simply need to copy the appropriate template files into the root of your theme (or child theme). As you’ve noted, WordPress will display the changes as appropriate.

    (By default, unless single-event.php is present, the single event page uses single.php and automatically inserts the event details).

    What you describe regarding the page template is very odd, and not something I’ve seen before. Just to clarify that this is the page template drop-down that WordPress adds (i.e. not a theme option etc)?

    Secondly, if you don’t update the page, does the page on the front-end render with the correct template (even though the correct template is not selected in the admin page). I suspect that this is the case, as from what you describe the database value storing the page template doesn’t change.

    This leads me to suspect that the WordPress can’t find the page’s template. (Does ‘Page with a sidebar’ still appear in the drop-down?). This would be rather unexpected and might be due to a theme/plug-in conflict, but quite how that would come about is anyone’s guess.

    Anyway, the answers to the above might at least point us in the right direction…

Viewing 1 replies (of 1 total)
  • The topic ‘customized templates into child theme's root results also in using a Standard Te’ is closed to new replies.