• I’ve been reading for the past 2 hours how to make it work but i still didnt manage anything.

    I wanted to write a wordpress theme from scratch (for the 1st time) so i started reading the codex and some tutorials on the web but then i wanted to add 2 sidebars, 1 in the right side and 1 over the footer.

    Here is my code:

    function.php: https://pastebin.com/2CnHfjWX
    sidebar.php : https://pastebin.com/Fn022tVq
    sidebar-right.php and sidebar-bottom.php are similar to sidebar.php (the only thing that changes is that the outer div gets a id=’right-sidebar’ or id=’bottom-sidebar’).

    I’ve tried calling it with (in my index.php and footer.php file):

    <?php get_sidebar(‘right’); ?> and <?php get_sidebar(‘bottom’); ?>
    or <?php dynamic_sidebar(‘right’);?> or <?php sidebar(‘right’); ?> etc but nothing works.

    And another weird thing is, even though i see and am able to add widgets to the 2 sidebars in the admin panel when i update the page the page still shows empty sidebars

    [No bumping, please.]

  • The topic ‘Dynamic Sidebar problem (beginner)’ is closed to new replies.