customized templates into child theme's root results also in using a Standard Te
-
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.
- The topic ‘customized templates into child theme's root results also in using a Standard Te’ is closed to new replies.