Support » Fixing WordPress » calendar shows unwanted icon for next

  • Hi
    I am using wp 2.0.2 with the slimple 0.8 theme and have added a calendar using the following code:
    <!– Calendar –>
    <div class=”icon”><img src=”<?php bloginfo(‘template_directory’); ?>/images/calendar.gif” alt=”Calendar” /></div><h2><?php _e(‘Calendar’); ?></h2>

      <?php get_calendar(3); ?>


    I have checked the css and there is no wp-calendar code in there, however if you view the site ( you will see that there is a next icon there with no month. I have checked the css with Firefox WebDeveloper and it shows the following:
    html>body>div> #wrap>div #sidebar>ul>table #wp-calendar>tfoot>tr>td #next .pad
    I would like to add my own css but this seems to be part of the calendar function and it is spoiling the effect.

    With this scenario I have 2 questions:
    1) How do I get rid of this icon?
    2) The links have a double chevron for navigation – how do I change these?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The “icon” you refer to (I assume) is the small blue triangle “pointing” right. This is actually addressed in your CSS file. Look for the “#next” element description. That holds the image. You can simply delete the “background: url” line for the image to disappear.

    As far as the double chevron, you’ll have to hack the core WP files.

    Thanks billh. The #next element in the css (and the next.gif) is used for navigating the posts. There is also a #previous element which is used for navigation of the posts and this does not show in the calendar view.

    In previous themes I have tried all calendar elements start wp-calendar. I have tried copying and pasting these to the new theme but I still get the next icon showing.

    If I actually add a next and previous gif to the relevant wp-calendar elements I get 1 previous and 2 next, so as you suspect it is something in the core WP files, although I don’t see why as it doesn’t happen using any other themes.

    I have tried renaming the gif (and css references to it) in case it conflicts with ‘reserved words’ but it is still there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘calendar shows unwanted icon for next’ is closed to new replies.