Forums
Home / Themes and Templates / Different sidebar for a certain page
(@baszer)
10 years, 3 months ago
Hello,
a short question.
on my homepage and another page I want a different sidebar. So I have 2 sidebars. How can I display them without using a plugin.
so it should be something like:
if page=home or custom than <?php get_sidebar (‘custom’); ?> else <?php get_sidebar (); ?>
does somebody know the exact code?