Home › Forums › Calendar Products › Events Calendar PRO › limit text in calendar popups
- This topic has 8 replies, 2 voices, and was last updated 11 years, 1 month ago by
Geoff.
-
AuthorPosts
-
March 13, 2015 at 6:14 am #948114
oniregoc
ParticipantHello,
In my theme child, how can I limit the text to be only the text before and without the more tag in the full calendar view popup ?
Thanks
March 13, 2015 at 6:30 am #948117oniregoc
ParticipantHello,
In that tread I found a solution to remove completely the popups which is not what I want but may be a started point to modified code to display only the text before the more tag :
Fix suggested by support to disable event popups in calendar view no longer work
any help ?
March 13, 2015 at 9:51 am #948194Geoff
MemberHi there Bali–welcome back to the forums. π
You can override theΒ tooltip.php file to get what you’re looking for here. That file is located in /plugins/the-events-calendar/views/month/tooltip.php.
Cheers!
GeoffMarch 13, 2015 at 4:23 pm #948272oniregoc
ParticipantHello
Thanks but :
As I want to modify excerpt only in events popups and not for all the site and following this :
http://codex.wordpress.org/Function_Reference/the_content
I tried to replace in my child theme in tooltip.php :
<p class=”entry-summary description”>[[=raw excerpt]]</p>
by this
<p class=”entry-summary description”>[[=raw content]]</p>
and it doesn’t work… π get : [object window]
March 13, 2015 at 4:35 pm #948274oniregoc
Participantmmmm…was too easy :
<p class="entry-summary description"><?php the_content(); ?></p>March 13, 2015 at 4:36 pm #948275Geoff
MemberHi Bali, sorry my first suggestion didn’t help out.
To be honest, I’m having a little trouble following what it is you are looking to do. Are you trying to increase the length of the excerpt? Are you trying to replace the excerpt with the full content? Maybe you can help me get a better idea of what it is you need and I’ll do my best to point you in the right direction. π
Thanks!
GeoffMarch 13, 2015 at 4:59 pm #948277oniregoc
ParticipantNo it’s ok Geoff…I finaly find the way. In my events description I use a read more tag. The purpose was to remove “the read more” tag from the pop up because I think that user’s because for final user seeing “read more” in the popup then clicking on events and getting one more time “read more” is too much confusing.
As I said the trick was to replace excerpt by the_content… easy as I said. π
Now I have to customize css because the popup is really using too big font.
Thanks for your help
March 14, 2015 at 1:22 am #948300oniregoc
ParticipantOne more problem on this the CSS do not apply
I already try to change it in tribe-events.css but look like using the_content css is override by some other css than the one working for [[=raw excerpt]]
p.entry-summary description { padding: 0; font-size: 6px; line-height: 1.5; }One more thing the pop up is cover by the title at the top of the calendar:
change tribe-events-tooltip to this but doesn’t work either
.tribe-events-tooltip{ z-index:1000000 !important; }any help ?… one more time ? π thanks!
March 16, 2015 at 8:26 am #948567Geoff
MemberAwesome, thanks for following up Bali! Looks like we were replying right on top of each other on Friday, so I’m glad you were able to find an easy fix. π
Yeah, it’s very possible that your theme’s CSS is overriding the calendar’s CSS. You can try using this:
.tribe-events-tooltip .tribe-events-event-body { /* Your styles */ }I would try placing that in your theme’s style.css file. It’s very possible you will need to mark your attributes withΒ !important if the styles aren’t cascading well with your theme.
I wonder if the adding more specificity to the tooltip CSS will allow you to set the z-index:
.tribe-events-calendar .tribe-events-tooltip { z-index:Β 10000 !important; }I’m going to go ahead and close this thread since it seems we’ve covered the original question–but please feel free to start a new thread if you other questions and we’d be happy to help you out there. π
Cheers!
Geoff -
AuthorPosts
- The topic ‘limit text in calendar popups’ is closed to new replies.
