Best method to clean up meta in a single event page?

Home Forums Calendar Products Events Calendar PRO Best method to clean up meta in a single event page?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #925753
    Tim
    Participant

    I’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.
    Tim

    #926240
    Brian
    Member

    Hi 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

    #926248
    Tim
    Participant

    I’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,
    TP

    #926287
    Brian
    Member

    See 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

    #928229
    Tim
    Participant

    Thanks 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!

    #928735
    Brian
    Member

    Glad 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.

    #931814
    Tim
    Participant

    This 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

    #931820
    Brian
    Member

    Do 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

    #936478
    Brian
    Member

    Since 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! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Best method to clean up meta in a single event page?’ is closed to new replies.