WordPress.org

Forums

Stout Google Calendar
Wrapping calendar entry titles (10 posts)

  1. Accidental Webmaster
    Member
    Posted 4 years ago #

    Hi - great plugin! Thought I'd share this addition I made to gcalendar-wrapper.php @ line 292 in order to "wrap" the calendar entries in month mode:

    td.st-c div {
        white-space: normal;
    }

    Found this courtesy of this post : http://iamhigham.com/2011/01/customising-an-embedded-google-calendar/

  2. theperthurbanist
    Member
    Posted 3 years ago #

    Hi AW,
    Can you tell me exactly what you mean by 'wrapping' the calendar entries? As in the event name doesn't get cut off by the next day, or something else?
    Cheers

  3. Accidental Webmaster
    Member
    Posted 3 years ago #

    That is correct pert. Event names wrap on to multiple lines instead of being cut-off by the next calendar day.

  4. atQuest
    Member
    Posted 3 years ago #

    for this to work you have to enter the css into line 229 (not 292)

    And ps Accidental Webmaster: thank you!

  5. pv2008
    Member
    Posted 3 years ago #

    Hi AW, atQuest,

    I am very interested in using this modification. I am using stout-google-calendar v1.2.3 but I can't find the line (229 or 292) you are talking about? Can you please be clearer on the lines before/after in gcalendar-wrapper.php where I need to make the change? Thanks!!

    Cheers,

  6. Accidental Webmaster
    Member
    Posted 3 years ago #

    PV -

    I made some other tweeks to this php file, so I may give you the wrong line number. I suggest you search for the phrase "/* month view */", and then insert the code shown above on a line immediately following this phrase. Good luck!

  7. pv2008
    Member
    Posted 3 years ago #

    Thanks for that! It's working now.

    Cheers.

  8. pv2008
    Member
    Posted 3 years ago #

    Hi AW,

    On my site I have consolidated a few calendars. However I noticed that sometimes there is an empty line between events from different calendars which happen on the same day and sometimes no extra line, but there doesn't seem to be any logic to this. Is this what all of you are seeing too?

  9. aprachar
    Member
    Posted 3 years ago #

    While we're at it... Has anyone figured out how to wrap the event title text in agenda view?

  10. aprachar
    Member
    Posted 3 years ago #

    Heh, after continues searching, I found the answer to my own question, add:

    In gcalendar-wrapper.php:

    .agenda .event-title {
    white-space: normal;
    }

    Under /* agenda view */ You'll be golden.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Stout Google Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic