how to personalize side bar
-
I would need to personalize the side bar in the events’ pages, since I cannot use the standard one. How can I view the single post options in the event editor?
Thank you in advance
Gabriele
-
Hi Gabrielle,
The sidebar is a feature of the theme you are using not the plugin. If you want to use a different sidebar you will need to set up a custom post template. Copy the theme file called single.php and save as single-event.php. You will now be able to customise and change the sidebar.Not sure what you mean by single post options. You can change how the event is displayed using the plugin settings.
I already have different sidebar for all categories. The problem is that the posts generated by the plugin automatically use the default sidebar, not the sidebar associated with the respective category.
I do not have a single.php file in my theme’s directory. How can I set the right sidebar for the event posts?For example, this is a normal post in the “formazione” category:
http://www.ipsico.it/formazione/scuola-psicoterapia-cognitivo-comportamentale/This is an event page, in the same category:
http://www.ipsico.it/event/corso-preparazione-esame-stato-psicologo/I would need the same sidebar.
Thank you
Gabriele,
This is a theme feature that only seems to work on your pages. If you look at your ‘news’ the default sidebar is displayed on all posts. So it looks like the theme only allows category sidebars for pages not posts. Can you try categorizing your news posts to see what happens.No Aerin, I have only posts (not pages – indeed, you can see the taqs). I decided to use the default sidebar for news category. I use a different sidebar for all posts in “formazione” category (e.g., http://www.ipsico.it/formazione/riviste-di-psicoterapia/), and I would need that my event posts had this sidebar.
Thank youIt really all depends on how the theme manages the sidebars.
I installed a sidebar plugin on my test site and it worked – different sidebars for different categories. You probably need to speak to the theme developers to ask if their theme support custom post categories.
I already asked, and they said that the theme does not support custom post categories.
I will try to do it manually.
Thank you and congratulations for your plugin.
GabrieleIt’s an easy fix. If you create a custom template you can put whatever sidebar on it you like. Your theme should have a file called single.php lurking somewhere. Copy this and rename to single-event.php and you change the sidebar by adding the code:
<?php dynamic_sidebar('mycustomsidebar'); ?>
- The topic ‘how to personalize side bar’ is closed to new replies.