Hello.
I can’t get the sidebar to show on my events page.
In the arhive-event.php page I can see it being called <?php get_sidebar(); ?> but nothing appears on my site: https://honeststrategy.com/agenda/
How can I make it appear?
Héctor de Prada Gonzalez
Hi Héctor,
Have you double checked that the template in question is actually being used? If so, I can’t see any reason why the sidebar wouldn’t be loaded, but the behaviour is largely theme dependent. Just to confirm – you’re referring to the ‘all events’ page?
(The template in question should be archive-event.php
not arhive-event.php
– but I’m fairly sure that was just a typo in your original post, and not a typo in the filename).
Stephen Harris
Hello Stephen.
Yes, it was a typo. The template being used is the one from the plugin since I haven’t created any other template in my theme folder. And I have the Enable theme compatibility mode (default) option checked on the plugin configuration.
Should I change that?
Thanks
Héctor de Prada Gonzalez
Ah, so if theme compatibilty is enabled then archive-event.php
is not used, instead the plugin uses the page.php
template and injects the events into the content.
My recommendation would be to copy the templates into your theme and then edit according to your theme. You could disable theme-compatibility, but that would just revert to using the plug-in’s templates, which might not work with your theme (without you making changes to them).
Stephen Harris