Home › Forums › Calendar Products › Events Calendar PRO › Best method to clean up meta in a single event page?
- This topic has 8 replies, 2 voices, and was last updated 11 years, 3 months ago by
Brian.
-
AuthorPosts
-
December 27, 2014 at 9:25 am #925753
Tim
ParticipantI’m a designer with modest level of comfort with PHP. It seems to me I can control the display of meta information on a single event display page in at least three ways:
1) commenting out the section that controls it within the template file (e.g. single-event.php — which I’ve relocated to my template folder)
2) modifying the meta PHP file producing the meta information (also relocated)
3) adding a function that removes the action (as I did with Google Calendar link)What’s the most easy and reliable method?
Specifically, I’d like to remove the recurring event and free links below the date on this page: http://www.shengzhenaustin.org/event/awakening-the-soul-and-union-of-three-hearts-meditation/2014-12-30/
Many thanks in advance.
TimDecember 29, 2014 at 6:06 am #926240Brian
MemberHi Tim,
Thanks for using our plugins. I can help out here.
I do not think any of those methods are not easy and reliable it really depends on what you are comfortable with doing.
For hiding parts of the template I usually default to CSS as that I find is usually the most future change proof.
Try this css to hide that area:
.tribe-events-schedule .recurringinfo,
.tribe-events-schedule .tribe-events-divider,
.tribe-events-schedule .tribe-events-cost {
display: none;
}Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.
Let me know if that helps.
Thanks
December 29, 2014 at 6:24 am #926248Tim
ParticipantI’m not in front of my computer but I expect that will work, and I’ll be more than glad to use that as my solution. If I were to try to add an action to eliminate an element, do you have any reference you can offer (like that for the Google calendar links)?
Also, do you perchance have a diagram of the anatomy of an events page, i.e. the components that constitute an event page? What I’m envisioning would be similar to the ‘anatomy of a wordpress theme’ diagrams.
Very many thanks,
TPDecember 29, 2014 at 8:04 am #926287Brian
MemberSee my answers below:
If I were to try to add an action to eliminate an element, do you have any reference you can offer (like that for the Google calendar links)?
This is the filter that you could use to remove it:
tribe_events_recurrence_tooltip
You could use that to return an empty string instead of using the css.
Also, do you perchance have a diagram of the anatomy of an events page, i.e. the components that constitute an event page? What I’m envisioning would be similar to the ‘anatomy of a wordpress theme’ diagrams.
The closest we have is the Themer’s Guide, but it is not quite the anatomy of the events page as you describe it:
https://theeventscalendar.com/knowledgebase/themers-guide/
Thanks
January 3, 2015 at 11:06 am #928229Tim
ParticipantThanks for the help, Bryan. Your recommendation worked for the meta but my alterations to my theme’s style.css to change meta-group styling (‘tribe-events-meta-group’) doesn’t seem to replace the tribe-events/resources/tribe-events-theme.css styling. Do you know why?
Example page where I”m wanting to tighten up the spacing: http://www.shengzhenaustin.org/event/sunday-morning-sheng-zhen-gong-at-acsl/2015-01-04/
Thanks!
January 5, 2015 at 7:26 am #928735Brian
MemberGlad it helps.
Looks like the style.css is loading first and the selectors are the same as the Events Stylesheet so it uses those values as they come second.
Try adding this:
.tribe_events
before each selector to make it more specific and override the Events Calendar Styles.
January 12, 2015 at 6:19 pm #931814Tim
ParticipantThis has been really helpful, Brian. One (hopefully) last question: Any way to configure the ‘venue’ meta details to belong to the ‘Primary’ meta group so that it can sit alongside Details and Organizer on the same line (float left, 33%)? Right now it seems to occupy it’s whole, full-width block as a ‘Secondary’ meta group.
see here: http://www.shengzhenaustin.org/event/sunday-morning-sheng-zhen-gong-at-acsl/2015-01-04/
Thanks for your input!
TP
January 12, 2015 at 7:01 pm #931820Brian
MemberDo not have any coding for that.
Usually the map shows next to the venue information.
Your site has two javascript errors causing the problem.
TypeError: $(…).corner is not a function $(‘.myCorner’).corner();
TypeError: $(…).nivoSlider is not a function $(‘#slider’).nivoSlider({
Fixing those might fill in that area with the map.
That is about all we have for this issue.
Thanks
January 22, 2015 at 3:59 pm #936478Brian
MemberSince I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Best method to clean up meta in a single event page?’ is closed to new replies.
