Forums

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

  1. nipponese
    Member
    Posted 7 months 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 7 months ago #

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

  3. nipponese
    Member
    Posted 7 months ago #

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

  4. Chrisber
    Member
    Posted 7 months 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 7 months ago #

    Interesting, thanks for your help.

Reply

You must log in to post.

About this Topic

Tags