Home › Forums › Calendar Products › Events Calendar PRO › Hide Featured Image on specific posts
- This topic has 5 replies, 2 voices, and was last updated 10 years, 8 months ago by
George.
-
AuthorPosts
-
August 1, 2015 at 11:27 am #992490
abarragree
ParticipantThe current answer to hide featured images on single event posts seems to be overriding the template.
I am wanting to hide the featured image for specific posts. Is there any way to do this?
It’d be nice if events had a simple checkbox to show or not show the featured images as headers in single posts.
August 3, 2015 at 10:53 am #992793George
ParticipantHey Mark,
Each post does have a unique Post ID, so you could use that ID to write post-specific CSS and hide the featured images for these posts. For a quick example of this, let’s say you want to hide the featured image for just these following posts:
• http://newman.tamucc.edu/event/summer-bible-study/2015-08-05/
• http://newman.tamucc.edu/event/daily-mass-w-free-meal-after-2/2015-08-26/Well, that “Summer Bible Study” even post has a Post ID of 2706, so you could target in CSS with this class name:
.post-2706That “Daily Mass w Free Meal” event, meanwhile, has a Post ID of 2516 (the specific one I linked to, anyways – it’s a recurring event, so each “instance” of that event will have a different ID).
So if you wanted to hide the featured image on just these two events, you could head to the bottom of your theme’s style.css file and add CSS like the following:
.post-2706 .tribe-events-event-image,
.post-2516 .tribe-events-event-image {
display: none !important;
}
You may need to use different selectors than .tribe-events-event-image to target the image directly, like on the “Summer Bible Study” event where it seems you’re using a widget or something to add that image there?
But the general idea is the same.
Hopefully this helps! Check out a [free!] tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome if you’d like to make it a lot easier for yourself to find CSS selectors for specific items on a page.
Cheers,
GeorgeAugust 3, 2015 at 8:59 pm #992951abarragree
ParticipantHey George, thanks for the reply! I went ahead and considered your answer the best, since it seems to be the only solution to the problem.
My issue, however, is that I’d like something simpler (such as a checkbox to toggle featured image visibility), since the users who manage the events are not tech-savvy, nor do they know CSS.
It’d be nice to see something like that in the future.
-
This reply was modified 10 years, 8 months ago by
abarragree.
August 5, 2015 at 3:28 pm #993628George
ParticipantI’m glad that my answer was a bit helpful, but am sorry that it wasn’t quite what you were looking for.
Adding options like this is a trickier business than it might seem – your feedback is very much appreciated, and we’ve been considering adding more customization options that are just point-and-click things (which wouldn’t require CSS knowledge, namely), but it’s “tricky” for a few reasons, namely that while we could add an option for every little UI thing under the sun, is it truly necessary? Think about design from someone like Apple Computers, where only the essentials are kept. Now, this itself has plenty of flaws, so we have to strike a balance between offering too many options and not offering enough…
…at present, I might agree with you that we’re on the “Not offering enough” side of things. Your feedback means a lot and just adds more weight to the arguments going on with our dev team about what options to add. Thank you!
For now, the CSS solution is unfortunately the best one there is 🙁 I’m really sorry about any inconveniences from this! Please let me know if there’s anything we can do here to help further, or if you have any other questions, comments, concerns, etc.
Thanks Mark!
August 6, 2015 at 5:49 pm #994083abarragree
ParticipantNo worries George, thanks for the feedback!
August 9, 2015 at 5:08 pm #994612George
ParticipantThanks for your understanding Mark – hopefully if you come to the forums for other issues in the future we can be a bit more helpful! 🙂
Cheers,
George -
This reply was modified 10 years, 8 months ago by
-
AuthorPosts
- The topic ‘Hide Featured Image on specific posts’ is closed to new replies.
