• Resolved kiaseven

    (@kiaseven)


    Hi,

    The featured images on my events (or ‘books’ in this case) aren’t being surfaced on the single event page. I added the below snippet in my child-theme version of src/views/single-event/content.php but it seems I can only add the image below the title or below the entire body of the listing. Is there a way to include it in the main body of the text and float it to the right so that the text wraps around it?

    <?php echo get_the_post_thumbnail(); ?>

    Thank you!

    Kia

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Deblyn Prado

    (@deblynprado)

    Hi @kiaseven!

    By default your featured image should be appearing in your Single Event Page.

    Can you please switch to any “Twenty” theme provided by WordPress and see if this works for you?

    Another good thing to check is our Testing for Conflicts tutorial => https://theeventscalendar.com/knowledgebase/k/testing-for-conflicts/

    Please give a try

    Have a great day!

    Thread Starter kiaseven

    (@kiaseven)

    Hi Deblyn,

    Thank you for the response.

    I use the Twenty Twenty theme so am already on quite a lightweight implementation. I did switch to Twenty Sixteen and deactivated all plugins except Events Calendar and the featured image still wasn’t showing up. Do you have any other ideas?

    Thank you!

    Kia

    Plugin Support Deblyn Prado

    (@deblynprado)

    @kiaseven thanks for your feedback! 🙂

    Think that I miss something in your first message.
    By default you don’t need to use <?php echo get_the_post_thumbnail(); ?> to show your featured image in the beginning of your single event page. Our plugin already do it.

    If you want to insert an image in the same scope as your event description you can just use media editor in event edit page (as you do with regular WordPress posts) and insert the image there.
    All the same alignment options will be available for you too.

    Please let me know is this what you’re looking for

    Thread Starter kiaseven

    (@kiaseven)

    Hi Deblyn,

    Thank you for your help.

    By default you don’t need to use <?php echo get_the_post_thumbnail(); ?> to show your featured image in the beginning of your single event page.

    The featured image isn’t showing up in the single event page. You can click through to any book from http://asianbooklist.com to check. Do you have any ideas why this is?

    If you want to insert an image in the same scope as your event description you can just use media editor in event edit page

    Is this the only way to include it as part of the event description? Ideally, I wanted to automate this so I wouldn’t have to manually insert the featured image.

    Thank you!

    Kia

    Jaime

    (@jaimemarchwinski)

    Hi @kiaseven

    I’m seeing your featured image appearing on your single event page here: http://p.tri.be/dUPoC6

    Have you been able to resolve this issue?

    You can definitely stick an image into the event description using the Add Media button. However, this image will not show up on your main calendar list, which is the case with featured images.

    I hope that helps!

    Thanks,
    Jaime

    Thread Starter kiaseven

    (@kiaseven)

    Hi Jaime,

    Thanks for the response. I’ve just been manually adding it into the listing itself using ‘Add Media’. It’s not ideal but it will do for now.

    Thanks,

    Kia

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Surface featured image within content’ is closed to new replies.