Forums

[resolved] How to add a calander to theme that does not have one? (9 posts)

  1. Nnyan
    Member
    Posted 6 years ago #

    Hello all,

    Tried searching for this and could not find an answer. I am currently using the K2 theme for WP and would like to add the standard WP calendar to the right side top.

    Not quite sure how to do this (I want to eventually use the Live Calendar plugin) and any help will be greatly appreciated.

    Thank you

  2. moshu
    Member
    Posted 6 years ago #

    For that modification of WP (=K2) here is the ofiicial support forum:
    http://binarybonsai.com/forums/

  3. Nnyan
    Member
    Posted 6 years ago #

    Ok I answered my own question by taking a good look at the documentation over at Live Calendar.

    Just edited my sidebar.php and added

    <div id="calendar">
    <?php get_calendar(); ?>
    </div>

    right after the <hr />

  4. petit
    Member
    Posted 6 years ago #

    To include the standard calendar in the sidebar, you edit your sidebar.php and add following tag:

    <?php get_calendar() ?>

    Just make sure you are adding this tag outside any loop!

    To be able to style the calendar, how have to know the table and classes delivered by the get_calendar() function.

    In the style.css WP default theme you find examples for styling the calendar under /* Begin Calendar */

    To include the calendar in the header or any other template, do the same. If you want to give the calendar an unorthodox position, You'll have to give positioning style rules for the calendar block, with ID="wp-calendar".

  5. petit
    Member
    Posted 6 years ago #

    Ay - moshu, you beat me there as did Nnyan.
    Sometimes I'm just too slow ;-)

  6. wendyhouse
    Member
    Posted 6 years ago #

    Gosh.
    I'm a complete Novice using worpress 2.01, and coding. I'm using a template (ocadia) without a calendar.

    Could someone either give, or point me to a step-by-step guide for adding a calendar that navigates my blog entries ie all blog entries made on that day.

    Code-sections are fairly useless to me outside of context (first do a, then b, then c) place code after (d).

    Thank you to who-ever is patient enough to do this :-)

  7. moshu
    Member
    Posted 6 years ago #

    If you'd just read instead of posting...
    It was mentioned twice above to put this code into your sidebar:
    <?php get_calendar() ?>
    wherever you want it to appear.
    Another advice: when I started doing this I downloaded several themes and looked at the code in them: one has calendar, the other doesn't... so I discovered the difference ;)

  8. wendyhouse
    Member
    Posted 6 years ago #

    I did read. I didnt understand. Hence requesting step by step in my post. Moshu, your post doesn't help. It repeats the information that I read and didnt understand with added insult.

    The suggestion to download several themes and look at the code is usedul, if somewhat overwhelming for a novice that hoped for a step-by-step guide.

  9. donato
    Member
    Posted 5 years ago #

    Hi!

    Just can't install the calendar. By putting the code <?php get_calendar() ?> in the file sidebar.php there's no change. Can anyone help?

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic