WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding a dynamic sidebar blows away my template (5 posts)

  1. nipponese
    Member
    Posted 5 years ago #

    After adding
    `<?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar() ) : ?>`

    The other content in my sidebar.php doesn't show up. What am I doing wrong?

  2. Chrisber
    Member
    Posted 5 years ago #

    Have you added any widgets to the sidebar after you modified the code?

  3. nipponese
    Member
    Posted 5 years ago #

    Yes, that's when my code stopped showing up.

  4. Chrisber
    Member
    Posted 5 years ago #

    Anything that is coded into the sidebar is usually overridden when a widget is installed. You have a couple of options. The simpler solution is to add your code back into a text widget and place it in the sidebar. You can also divide your sidebar into separate static and dynamic sections and place the code you want in the static section.

  5. nipponese
    Member
    Posted 5 years ago #

    Interesting, thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags