[SOLVED] how to remove blogroll & meta from right sidebar in 3.3.3?
How do I how to remove blogroll & meta from right sidebar in 3.3.3?
I have 0 widgets showing so why is anything displayed in my sidebar? Where is the code contained that displays the blogroll and meta (filename, line number)? Thanks! |
The only reason to remove that manually would be if you want an existing but blank sidebar. As soon as you put your first widget into a sidebar, the default content will be gone. To remove it manually delete the red parts, in header.php
<?php // Widgetize the Left Sidebar if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?> <div class="widget widget_categories"><div class="widget-title"> <h3><?php _e('Categories','atahualpa'); ?></h3> </div><div class="widget-content"> <ul> <?php wp_list_categories('show_count=1&title_li='); ?> </ul> </div></div> <div class="widget widget_archive"><div class="widget-title"> <h3><?php _e('Archives','atahualpa'); ?></h3> </div><div class="widget-content"> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </div></div> <?php endif; ?> and in footer.php <?php // Widgetize the Right Sidebar if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> <div class="widget"><div class="widget-title"> <h3>Recent Posts</h3></div><div class="widget-content"> <?php $r = new WP_Query(array( 'showposts' => 20, // 'cat__in'=>array(14), 'cat__not_in'=>array(15,80), 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); if ($r->have_posts()) : ?> <ul> <?php while ($r->have_posts()) : $r->the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li> <?php endwhile; ?> </ul> <?php wp_reset_query(); // Restore global post data stomped by the_post(). endif; ?> </div></div> <div class="widget"><div class="widget-title"> <?php wp_list_bookmarks('category_before=&category_after =&title_before=<h3>&title_after=</h3></div><div class="widget-content">'); ?> </div></div> <div class="widget"><div class="widget-title"> <h3><?php _e('Meta','atahualpa'); ?></h3> </div><div class="widget-content"> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="http://wordpress.org/" title=" <?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>"> <?php _e('WordPress','atahualpa'); ?></a></li> <?php wp_meta(); ?> </ul> </div></div> <?php endif; ?> |
After reading your comment, the answer is so obvious. Still, it never occurred to me.
Looks like we all go schooled. Truly, code-poetry. It says much, even when it says nothing. :) |
All times are GMT -6. The time now is 09:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.