Accidental Webmaster
Member
Posted 10 months 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/
theperthurbanist
Member
Posted 8 months 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
Accidental Webmaster
Member
Posted 8 months ago #
That is correct pert. Event names wrap on to multiple lines instead of being cut-off by the next calendar day.
atQuest
Member
Posted 7 months ago #
for this to work you have to enter the css into line 229 (not 292)
And ps Accidental Webmaster: thank you!
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,
Accidental Webmaster
Member
Posted 1 month 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!
Thanks for that! It's working now.
Cheers.
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?
aprachar
Member
Posted 1 month ago #
While we're at it... Has anyone figured out how to wrap the event title text in agenda view?
aprachar
Member
Posted 1 month 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.