Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] how to remove blogroll & meta from right sidebar in 3.3.3?


  #1  
Old May 8, 2009, 07:35 PM
webdevelopment
 
2 posts · May 2009
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!
  #2  
Old May 8, 2009, 09:15 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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; ?>
  #3  
Old Oct 7, 2009, 12:34 PM
gomer
 
19 posts · Oct 2009
OH, USA
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.


Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Menu drop down modification - remove arrows & extra space dorigen Page & Category Menu Bars 31 Aug 16, 2014 12:10 PM
Adding sidebar links outside of the blogroll (with formatting matching the sidebar) Flur Sidebars & Widgets 8 Jul 21, 2009 11:50 AM
Right Sidebar hogs meta widget and NextGEN slideshow widget softroy Sidebars & Widgets 3 Jun 13, 2009 03:20 AM
How do I remove the META widget dododi Sidebars & Widgets 6 Jun 5, 2009 04:40 AM
[SOLVED] Blogroll links not appearing in sidebar artoftroy Sidebars & Widgets 2 Jan 13, 2009 11:33 AM


All times are GMT -6. The time now is 11:06 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.