Support » Plugin: Event Calendar » [Plugin: Ajax Event Calendar] Print Calendar

  • Resolved saucysandy

    (@saucysandy)


    I’ve tried installing “print page” plugins but only the text is print or the whole page is (maybe I’m not using the right plugin). Could a “print calendar” function be implemented to appear below the calendar? I’m using it for a school Canteen Roster and school events calendar (just love the use of showing one category) so printing for parents would be a fantastic option for me.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor Eran Miller

    (@eranmiller)

    Add the functionality you desire above or below the shortcode, depending on where you want to display the information, for example:

    [calendar]
    <a href="window.print()">Print Page</a>

    Eran

    For someone who is not a programmer, is there something simple like above that one could add to print a page? I tried what you put above wondering if that was an actual solution or just a placeholder for an idea, and it did not work.

    Thanks,

    Plugin Contributor Eran Miller

    (@eranmiller)

    I intended to post this:

    [calendar]
    <a href="javascript:window.print();">Print Page</a>

    Dave: This is the solution I am recommending. If you need a non-programmer solution, I would recommend looking for plugins specific to this functionality request.

    Eran

    Hey that is fantastic! I never knew how easy it was to trigger printing in a link. Thanks.

    And I am sorry I seem to have triggered your defensive side. My question was a reasonable one and resulted in a very helpful answer for me and likely others who will find this post as I did and the original person posted.

    Again, nice plugin and thanks. Also, thanks for responding.

    Plugin Contributor Eran Miller

    (@eranmiller)

    Not defensive, I was answering the question: ” I tried what you put above wondering if that was an actual solution or just a placeholder for an idea, and it did not work.”

    My reply was merely stating that the code I posted was not a placeholder, but the solution I proposing, and that I wasn’t going to be building further printing functionality into the calendar.

    I’m glad I could be of help.
    Eran

    Thank you, Eran. This does work for me, however, it prints out the widgets on each side of my page. Would there be a solution to ‘just’ the calendar being printed without the sidebars? Here’s my page http://www.mozinc.net/wordpress/calendar

    I really appreciate your assistance with this.

    Plugin Contributor Eran Miller

    (@eranmiller)

    You need to add print specific rules (that hide certain page elements) to your theme stylesheet. If you run searches in your favorite search engine on “Print Style Sheets”, you’ll find some good resources that can help.

    Eran

    Thank you Eran, I will do some googling, thank you for directing me.

    You would create a new stylesheet and add the following CSS rule to it:

    art-sidebar1, art-sidebar2 {display:none;}

    You can add the stylesheet via a plugin like Bunny’s Print CSS plugin. Then add that rule to it. That should do it.

    Thanks David, I must have my blonde hat on today. I have installed Bunny’s plugin and see the CSS page, put the art-sidebar1, art-sidebar2 {display:none;} but no luck. Your instructions are clear but I’m just not getting it right.

    Plugin Contributor Eran Miller

    (@eranmiller)

    Saucy, make sure you include the period before each of those class names.
    .art-sidebar1, .art-sidebar2{display:none}

    good call. My mistake. Let me know if that does not work.

    I’ve been trying for hours, I hate being stupid but I just can’t make it work. I’ve written sites in old style HTML in notebook using old school tables etc but CSS just confuses me. I’ve stuck the code in every place possible in the Bunny CSS plugin with no luck and then Eran’s PHP file, with no luck. I’m sure it’s me, not your code.

    I just looked at your site, and see that you do have it in there a few times and it is correct and when I print your page it does print without the sidebars. Is that not what is happening for you?

    If you want to remove the navigation links at top of printed page, you can also add the following to your print style sheet:

    div.art-nav-center {display:none;}

    Oh David, thank you so much! I didn’t realise because of the links appearing. In my defence, I just got rid of the footer by using

    div.art-center-wrapper {display:none;}

    I think I’m starting to understand!

    Thanks so much, you’ve made my day, it prints exactly the way I want it to.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: Ajax Event Calendar] Print Calendar’ is closed to new replies.