• I really need help on this one. I’ve been searching this forum for ages now, and can’t seem to find any help anywhere ??

    What I want to do: Customize the the default (I guess) wp-calendar in order to get this result: https://www.jokke-svin.dk/andet/event-cal.png

    QUESTION 1: Where is the calendar-code generated? (you know, the PHP-file where you can see the CSS being applied) – I can’t find it at all. One would think it should be located in the sidebar.php but no…

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jokkesvin

    (@jokkesvin)

    I’m sure there must be someone out there who knows this, hmm… A lot of people are asking a similar question.

    Please, anyone?

    the file that contains the actual function for outputting the calendar is wp-includes/template-functions-general.php

    I recommend this, so that you might do these sorts of investigative things yourself.

    https://www.wingrep.com

    Thread Starter jokkesvin

    (@jokkesvin)

    whooami –> Thanks but I did come across that file. There must be an easier way to customize the calendar?

    And what do you mean by “I recommend this, so that you might do these sorts of investigative things yourself”?

    I have also been looking. The only thing I could think of is to add the following to the style.css:

    #wp-calendar{
    width: 150px;
    padding: 0 0 15px;
    background:#000000;
    }

    #wp-calendar caption{
    padding: 5px 5px ;
    font-size:16px;
    background:#000000;
    }

    #wp-calendar th, #wp-calendar td{
    padding: 5px;
    text-align:center;
    background:#000000;
    color:#000000;
    }

    #wp-calendar td a{
    background:#000000;
    padding: 5px;
    }
    #wp-calendar td{
    background:transparent;
    }
    #wp-calendar td, table#wp-calendar th{
    padding: 2px 0;
    }

    It worked for me. Maybe it helps you…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customize wp-calendar, how?’ is closed to new replies.