Hide Meta Boxes on a single event

Home Forums Calendar Products Events Calendar PRO Hide Meta Boxes on a single event

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1016827
    Paul Gray
    Participant

    Is it possible to hide the event details meta box and / or the ticket meta box on a single event? Maybe with a shortcode or something?

    Thank,

    Paul

    #1016973
    Geoff
    Member

    Hi Paul,

    Good question. There is no way to hide those areas in the event editor right out of the box without touching core code. However, I wonder if using Advanced Custom Fields might help here, since it provides the ability to hide fields from the post editor and supports custom post types. Definitely worth a look.

    Would that possibly work? Let me know and I’d be happy to answer any other questions about hiding those fields as best I can. šŸ™‚

    Thanks!
    Geoff

    #1016975
    Paul Gray
    Participant

    Hi

    Thank you.

    Not sure if there is a misunderstanding – I want to hide the two boxes that show at the end of the event page on the front end, not in the editor screen?

    PG

    #1017114
    Geoff
    Member

    Oh, gotcha! Thanks for clarifying.

    Yeah, that’s possible for sure. Add this to your theme’sĀ style.css file and it should do the trick:

    #tribe-events-content form,
    .tribe-events-event-meta {
    display: none;
    }

    Thanks!
    Geoff

    #1017131
    Paul Gray
    Participant

    Geoff, thank you.

    I guess this will disable it on all events? But I want to selectively disable the event details metabox and the add-to-cart/ticket box just for one or two of my events – hence why I asked if there might be a shortcode for that?

    To clarify further, I am trying to add a pricing grid to an event and the two boxes I want to remove are redundant when I do this – see the grey and orange sections at the end of the example here under the new pricing grid…

    http://www.symposium-events.co.uk/event/apprentices-and-school-leavers-conference-2015-2/

    Paul

    #1017276
    Geoff
    Member

    Hey there, PG!

    Shoot, sorry that doesn’t quite do the trick. Unfortunately, there is no way to selectively choose to hide the information from events. In other words, all settings are global and cover them all.

    You could take an approach of targeting the CSS snippet to specific events. Then again, that would be quite a hassle to manage in the long term.

    Sorry I don’t have a concrete solution for you here. One thing you mentioned was the idea of a shortcode and–while I’m not quite sure how that would work–we are in the thick of thinking about how shortcodes on The Events Calendar can and should work outside of the ones we already have. If you have a moment, I’d really appreciate you sharing your idea on the feature request for shortcodes so we have more input on how what that should look like.

    Do you have any other questions about meta boxes? Let me know and I’d be happy to help as best I can.

    Thanks,
    Geoff

    #1017293
    Paul Gray
    Participant

    Thanks – I thought that might be the case. I’ll figure out something.

    PG

    • This reply was modified 10 years, 6 months ago by Paul Gray.
    #1017431
    Geoff
    Member

    Sure thing. Thanks and sorry again for the mixup at the start. šŸ™‚

    Cheers,
    Geoff

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hide Meta Boxes on a single event’ is closed to new replies.