WordPress.org

Ready to get started?Download WordPress

Forums

how to disable the calendar? (6 posts)

  1. fox
    Member
    Posted 9 years ago #

    Hi, I used search and have read a thread where someone suggests "commenting" a line in some file to make calendar disappear.
    I want to do it but I don't know which file is this line (and exactly what symbool I have to write to comment it).
    Anyone knows how?
    Thanks and greetings from Barcelona, Spain

  2. Geoffrey Sneddon
    Member
    Posted 9 years ago #

    Find
    <li id="calendar">
    <?php get_calendar(); ?>


  3. in index.php and put < ! - - and - - > around it
    (Edited so it shows. Remove the spaces in the characters either side of 'and' )

  • Geoffrey Sneddon
    Member
    Posted 9 years ago #

    Arg.. I forgot to reload... so you showed it...

  • Cypher
    Member
    Posted 9 years ago #

    The other way, without modifying index.php is to use the style sheet.
    Add the following code:

    #calender {
    display: none;
    }

    This will not display the calender. You can also supress the SEARCH or OTHER sections by using "#search" and/or "#other".
    Regards

  • fox
    Member
    Posted 9 years ago #

    Thanks very much! it worked both ways :)

  • Mark (podz)
    Support Maven
    Posted 9 years ago #

    And the way I do it - I just delete the code calling the calendar from index.php :)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags