Home › Forums › Calendar Products › Events Calendar PRO › modify the event-list-widget
- This topic has 7 replies, 2 voices, and was last updated 11 years, 7 months ago by
Brook.
-
AuthorPosts
-
September 23, 2014 at 7:14 am #761457
knausevino
ParticipantHello,
I have a lot of recurring Events and I want the Events-List_Widget only to show the data I can fill in at the edit/event section, but not the Line where it says:| Recurring Event | (See all)
So instead of, for Example:
“Event 001”
“27.Oktober @ 12:00 – 14:00”
“|Recurring Event (See all)”
“My personal Data from the Edit/Event-Section”
i want it to be like:
“Event 001”
“27.Oktober @ 12:00 – 14:00”
“My personal Data from the Edit/Event-Section”
I guess it’s easy by adding a function to the functions.php – but I cant write that. Can you help? Thank you.September 23, 2014 at 10:56 am #762050Brook
ParticipantHowdy knausevino,
That should be very easy to accomplish. Paste the following at the top of your theme’s functions.php file, underneath the first line “<?php”. If your theme does not have a functions.php file, go to your theme folder, create a new text document file called “functions.php”, and paste this text in the first line of the file “<?php”. On line 2 or 3, paste this:
TribeEventsPro::instance()->disable_recurring_info_tooltip();
Does that make sense? Will that work for you? Please let me know. Cheers!– Brook
September 23, 2014 at 11:25 am #762093Brook
ParticipantFollowing up on my last post, I forgot that will disable the recurring info sitewide, even on the event details pages. If you simply want to hide it from the widget alone, some CSS will be more appropriate. Add this to one of your (child) theme’s CSS files:
. tribe-events-adv-list-widget .recurringinfo{ display:none; }– Brook
September 23, 2014 at 11:29 am #762102knausevino
ParticipantThanks for the CSS- thats good. But, the first two lines you gave me, they have the effect, that both, the line:
| recurring | (See all)
!!!and!!!
my personal data
are hidden. But I want only the first line to disapear. Thank you.September 23, 2014 at 12:52 pm #762251Brook
ParticipantAhh. That’s odd. At any rate, if you use the code from my second comment I think it is both more applicable and should restore your data. Just delete the code from my first one. Make sense?
– Brook
September 24, 2014 at 1:41 am #763280knausevino
ParticipantWell, the code in the css-file does the same as the other one. But only the list-widget is ment in the second one and not the event-detail-page (as you expected- of course) But still it deletes to much. If I understand it right, the recurringinfo/tooltip ist “puzzeld together” in the general.php in the-events-calender/public/templatetags with both informations. So probably I would have to change it there (well actually in a copy in (theme/tribe-events/public/templatetags/gerneral.php (right?)), but as I said, I don’t know how to write css… I hardly can guess what it’s saying when I read it. It is like – let’s say – french to me. I get some words but wouldn’t be able to write or speak a complete sentence. However, thank you for trying solving my problem, maybe well find a way. Thanks,
KevinOctober 7, 2014 at 7:38 am #794129Brook
ParticipantHowdy again Kevin,
I was just running through old topics closing them out. Before I closed this I wanted to confirm that you were able to get it going. When we last talked it sounded like you were still working on it. How did ti go? If you still need assistance perhaps you can post a link to the site? If you prefer to make it a private reply no one else will see the link. Please let me know. Thanks!
– Brook
October 13, 2014 at 9:40 pm #809157Brook
ParticipantSince this topic has gone for a spell without a response I am going to archive it. If you do need anything else please feel free to open a new topic. Cheers!
– Brook
-
AuthorPosts
- The topic ‘modify the event-list-widget’ is closed to new replies.
