Gareth

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Gareth
    Participant

    Hooray! That’s done it. Thanks Brian.

    in reply to: How do I deregister widget-calendar-full.css? #972123
    Gareth
    Participant

    Thanks Nico, unfortunately that snippet hasn’t altered anything, it’s still loading widget-calendar-full.css

    in reply to: Featured Image not displaying in theme header #970959
    Gareth
    Participant

    I did some hunting on displaying featured images outside the loop and managed to adapt some code into a working solution. Here’s my code snippet if it’s of help to anyone else:

    
    $thumbID = get_post_thumbnail_id( get_queried_object_id() );
    if ( has_post_thumbnail() ) { 
        the_post_thumbnail( $picsize );
    } else if($thumbID != '') {
        $bkgdImg = wp_get_attachment_image( $thumbID, $picsize );
        echo $bkgdImg;
    } else {
        [fallback]
    }
    
    in reply to: Featured Image not displaying in theme header #970181
    Gareth
    Participant

    Thanks for your reply George. Unfortunately that code didn’t make a difference. I wonder if it’s because the featured image is called in the header.php which is too far removed from the events loop. Normal pages and standard posts show their featured images as expected just not events unless the featured image is called in single-event.php.

Viewing 4 posts - 1 through 4 (of 4 total)