• Resolved Nnyan

    (@nnyan)


    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • For that modification of WP (=K2) here is the ofiicial support forum:
    https://binarybonsai.com/forums/

    Thread Starter Nnyan

    (@nnyan)

    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 />

    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”.

    Ay – moshu, you beat me there as did Nnyan.
    Sometimes I’m just too slow ??

    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 ??

    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 ??

    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.

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to add a calander to theme that does not have one?’ is closed to new replies.