Home › Forums › Calendar Products › Community Events › Featured Image for /events/community/add Page
- This topic has 4 replies, 2 voices, and was last updated 9 years, 8 months ago by Barry.
-
AuthorPosts
-
July 12, 2014 at 11:44 pm #365387rantfarmentertainmentParticipant
Hiya,
My website formating requires all pages to have a featured image (even if it isn’t displayed on the actual page).
Is there any way to add a featured image to the /events/community/add page? It isn’t treated as a normal page, and doesn’t appear in my pages list.
WordPress 3.9.1 running Hickory theme.
Thanks,
AshJuly 13, 2014 at 12:08 am #365454BarryMemberHi Ash,
You’re quite right that it isn’t a page in the sense of a regular static WordPress page. It’s possible to detect if you are on a Community Events page, though, using helper functions like this one. So, perhaps, you could make a change to the relevant section of your theme so that it loads an alternative image in these situations?
// Community Events page? Use an alternative/placeholder for the // featured image if ( tribe_is_community_edit_event_page() ) { echo '<img src="..." />'; } // Otherwise display the post featured image as normal else { the_post_thumbnail(); }
That is of course a very broad outline and the actual code or solution is likely to be different, depending on how your theme does things. Hopefully it gives you some options to explore, though.
Does that help?
July 13, 2014 at 12:19 am #365472rantfarmentertainmentParticipantThanks for the quick response!
Unfortunately I’m not familiar with the code required here. Are you able to put something together for this situation?
July 13, 2014 at 12:20 am #365475rantfarmentertainmentParticipantActually – sorry, I just realised this is a more serious problem than I first thought.
I don’t need your help at this point.
July 13, 2014 at 3:39 am #365887BarryMemberOK, well what I’ll do then is go ahead and close this thread: if you do need further help though and think we might be able to point you in the right direction for anything else please don’t hesitate to create new threads as needed, referencing this one if appropriate – one of the team will then be only too happy to help 🙂
Thanks!
-
AuthorPosts
- The topic ‘Featured Image for /events/community/add Page’ is closed to new replies.