Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

remove / hide archive

Status
Not open for further replies.
So you want to remove the 'Archives March 2009' bit?

This would be a widget in Sidebar Left. First remove this from with the WP widget control panel. There may possibly be a default to show this if nothing else in sidebar.

To hard code out edit this bit within the theme folder:

<div id="rightnav">
<ul id="sidebarleft">
<li id="archives"><h2>Archives</h2> <ul>
<li><a href='http://www.johannesburgflights.co.uk/2009/03/' title='March 2009'>March 2009</a></li>
</ul>
</li>
</ul></div>

Most WP themes have this in sidebar.php or leftsidebar.php

Sean
 
no widgets are showing as being active in either of the sidebars. That was my problem.

this is what is currently showing in sidebar2

<ul id="sidebarleft">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<?php get_links_list(); ?>
<li id="archives"><?php _e('<h2>Archives</h2>'); ?>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<?php endif; ?>
</ul>


How do I amend this??? Cheers for your help ....
 
First
Take a backup copy of sidebar2

Then edit to show this:

<ul id="sidebarleft">

</ul>


This basically removes all functions from this sidebar. I'm not a PHP expert but there would also be a way of editing the 'else' function out as an alternative. Or, you could remove the reference to sidebar2 within the main page or sidebar file. Above should work though.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
      Helmuts @ HelmutsHelmuts is verified member.: Good morning all
      Top Bottom