Home › Forums › Calendar Products › Events Calendar PRO › Remove Featured Image from Automatically Displaying
- This topic has 7 replies, 2 voices, and was last updated 13 years, 1 month ago by
Jonah.
-
AuthorPosts
-
March 11, 2013 at 7:44 am #42196
336creative
ParticipantHello:
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 #42200Jonah
ParticipantHi 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 #42233336creative
ParticipantThanks 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 #42234336creative
ParticipantWell that didn’t work – it’s posted here now: http://snippi.com/s/3gjjhto
March 11, 2013 at 12:37 pm #42269Jonah
ParticipantHi 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 #42322336creative
ParticipantYes. 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 #42323336creative
ParticipantSolved – 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 #42347Jonah
ParticipantHey 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.
