• Resolved Sam

    (@samaresh)


    Hi,

    How can I display the Featured Image on Single page?? Probably Above the Start Date !!

    Regards
    Sam

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Sam,

    It uses your theme file called single.php (or single-event.php if present) which is located in your theme folder. Apparently that file doesn’t include the featured image.. Question: is the featured image displayed on a single (blog) post?

    Guido

    Thread Starter Sam

    (@samaresh)

    Hi Guido,

    Thank you. In my theme it allows to display featured image on a single post, but enabling this featured image is showing in all the other post I have.

    If u can help me to display only for evens using your plugin.

    Regards
    Sam

    Plugin Author Guido

    (@guido07111975)

    So you have turned off the display of featured images in your theme settings?

    What theme are you using?

    Guido

    Thread Starter Sam

    (@samaresh)

    Hi Guido,

    Yes I Have turned off, and I am using XMag Theme(https://www.ads-software.com/themes/xmag/).

    Any alternate?

    Thanks
    Sam

    Plugin Author Guido

    (@guido07111975)

    Hi,

    You should adjust theme file content-single (located in folder template-parts).

    Open that file and look for the second:

    
    </header><!-- .entry-header -->
    

    Add this directly above:

    
    <?php if ( is_singular('event') ) { ?> 
    	<figure class="entry-thumbnail">
    		<?php the_post_thumbnail('large'); ?>
    	</figure>
    <?php } ?>
    

    Now featured image should be displayed in case of event and if featured image is turned off in your theme settings.

    Guido

    Thread Starter Sam

    (@samaresh)

    Hi Guido,

    Thank you very much for your support. It is working perfectly.

    Regards
    Sam

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to display Featured Image on Single Even Page’ is closed to new replies.