Home › Forums › Calendar Products › Events Calendar PRO › Remove Featured Image from Automatically Displaying
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by Jonah.
-
AuthorPosts
-
March 11, 2013 at 7:44 am #42196336creativeParticipant
Hello:
Use this page for reference – http://kornersfolly.wpengine.com/event/korners-folly-133rd-anniversary-celebration/
As you can see, our page template has an option for adding in a featured image. It looks like Events Calendar Pro is also adding the featured image to the page content. I can’t seem to find this call in order to remove it.
Any help?
March 11, 2013 at 7:53 am #42200JonahParticipantHi 336creative,
Take a look at my marked answer here: https://theeventscalendar.com/support/forums/topic/remove-image-altogether/ – you’ll need to do something similar to achieve this. Let me know if you have any questions.
Regards,
JonahMarch 11, 2013 at 10:38 am #42233336creativeParticipantThanks for your help Jonah! I was able to follow you other answer. Only issue – it took the featured image out where I wanted it left (in the header) and left it in the content area where I wanted it to go away. The loop in my page.php is currently as follows:
<div id="post-” >
<?php edit_post_link( __( 'Edit', 'twentyten' ), '’, ” ); ?>
Any help?
March 11, 2013 at 10:39 am #42234336creativeParticipantWell that didn’t work – it’s posted here now: http://snippi.com/s/3gjjhto
March 11, 2013 at 12:37 pm #42269JonahParticipantHi 336creative,
If you are using the Default Page Template, our plugin is going to use your themes single.php for single events. Have you tried editing that with the same code?
– Jonah
March 11, 2013 at 6:45 pm #42322336creativeParticipantYes. That is the issue – the loop is essentially being run twice on the page – and that is why the featured image is being displayed twice – once before the content but inside the loop (it’s coded that way), but then once again once the loop runs.
March 11, 2013 at 6:59 pm #42323336creativeParticipantSolved – since image was loading twice, just used display:none; to not display the second instance. I feel dirty doing it, but not sure of another workaround other than creating a custom template.
March 12, 2013 at 7:06 am #42347JonahParticipantHey 336creative,
That’ll do it and while not the best solution, it’s not that bad – it’s just an image you’re hiding, not actual content. If you want to do it different, you’ll need to find where the other loop is being run and conditionally remove the image there.
I hope that helps!
– Jonah
-
AuthorPosts
- The topic ‘Remove Featured Image from Automatically Displaying’ is closed to new replies.