Home › Forums › Calendar Products › Events Calendar PRO › Hide Meta Boxes on a single event
- This topic has 7 replies, 2 voices, and was last updated 10 years, 6 months ago by
Geoff.
-
AuthorPosts
-
October 22, 2015 at 5:58 am #1016827
Paul Gray
ParticipantIs 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
October 22, 2015 at 9:31 am #1016973Geoff
MemberHi 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!
GeoffOctober 22, 2015 at 9:35 am #1016975Paul Gray
ParticipantHi
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
October 22, 2015 at 2:56 pm #1017114Geoff
MemberOh, 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!
GeoffOctober 22, 2015 at 3:40 pm #1017131Paul Gray
ParticipantGeoff, 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
October 23, 2015 at 7:13 am #1017276Geoff
MemberHey 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,
GeoffOctober 23, 2015 at 7:43 am #1017293Paul Gray
ParticipantThanks – 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.
October 23, 2015 at 1:17 pm #1017431Geoff
MemberSure thing. Thanks and sorry again for the mixup at the start. š
Cheers,
Geoff -
This reply was modified 10 years, 6 months ago by
-
AuthorPosts
- The topic ‘Hide Meta Boxes on a single event’ is closed to new replies.
