WordPress.org

Ready to get started?Download WordPress

Forums

What's needed for a Sidebar to work? (1 post)

  1. GPSchnyder
    Member
    Posted 6 years ago #

    Hi,

    I am right now working on a Theme and I want to have one Page that only displays the content of a Sidebar.

    Is there anything more needed than a normal HTML-File with this:

    <!--widget start for Sidebar1-->>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar1') ) : else : ?>
    		<p>please go to your Admin Panel and put some widgets into Sidebar1</p>
    			<?php } ?>
    
    <!--widget end-->
    			<?php endif; ?>

    in it?

    I tried this and it doesn't, maybe someone of you could help me out of this?

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic