Remove Featured Image from Automatically Displaying

Home Forums Calendar Products Events Calendar PRO Remove Featured Image from Automatically Displaying

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #42196
    336creative
    Participant

    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?

    #42200
    Jonah
    Participant

    Hi 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,
    Jonah

    #42233
    336creative
    Participant

    Thanks 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?

    #42234
    336creative
    Participant

    Well that didn’t work – it’s posted here now: http://snippi.com/s/3gjjhto

    #42269
    Jonah
    Participant

    Hi 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

    #42322
    336creative
    Participant

    Yes. 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.

    #42323
    336creative
    Participant

    Solved – 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.

    #42347
    Jonah
    Participant

    Hey 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove Featured Image from Automatically Displaying’ is closed to new replies.