Support » Themes and Templates » Calendar Month Misaligned

  • Resolved Samuello

    (@samuello)


    I have been working on a theme and I cannot for the life of me figure out the get the month title of the WordPress calendar centered. Here is my current blog, the calendar is down the bottom of the page: http://www.ourwalkabout.com/.

    And here is the sidebar.php code that calls the WordPress calendar:

    <li id="wp-calendar">
    <?php get_calendar(1); ?>
    </li>

    And here’s the styles for the calendar from style.css:

    #wp-calendar {
    display: block;
    margin: 0 0;
    padding: 0 0;
    text-align: center;
    }
    
    #wp-calendar td {
    padding: 2px 2px;
    color: #ebebeb;
    background-color: #000000;
    text-align: center;
    }
    
    #wp-calendar th {
    padding: 2px 2px;
    color: #ebebeb;
    background-color: #000000;
    text-align: center;
    font: bold;
    }
    
    #wp-calendar .pad {
    background: transparent;
    }

    Thanks for any help! This is driving me nuts…

  • The topic ‘Calendar Month Misaligned’ is closed to new replies.