Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // sidebar.php
- if (is_active_sidebar('main')) {
- echo '<div class="sidebar_main">';
- dynamic_sidebar('main');
- echo '</div>';
- }
- else {
- echo '<div class="sidebar_main">';
- the_widget('WP_Widget_Text');
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement