Tagged: custom sidebar
I have tried some plugins to modify which sidebar that is displayed, but I had problems with making them work. Therefore I want to code it. I read https://kriesi.at/support/topic/sidebar-for-search-results-2/. For my post type “ordliste”, I plan to add single-ordliste.php and modifided the code at the bottom to get_sidebar('Ordliste');
to display the widget “Ordliste”. I also duplicated sidebar.php and named it ordliste-sidebar.php. I guessed that the only thing I need to modify is:
// general blog sidebars
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Ordliste') ) : $default_sidebar = false; endif;
Is that correct? Actually, it should not be necessary to run through a loop to find which sidebar to display for this blog category as I always want to display the same sidebar, but not sure how to modify this. It is more enjoyable to fix it through coding than by a plugin as I also can learn something. Your help would be much appreciated!
Hi,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis
Okay, I understand. Thank you for the great job you do at the support, much appreciated! This case can be closed
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon