Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #670439

    Hi

    I’m trying to get the thumbnail above the post title. I’m using Elegant as blog style. On the homepage it’s all good, but on individual post pages it’s not. See info below

    Yours Faithfully,
    Abos

    #671877

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avf_loop_index_blog_meta', function() {
    	if(is_single()){
    		global $post;
    		$output = get_the_post_thumbnail($post->ID, 'large');
    		return $output;	
    	}
    });

    Cheers!
    Josue

    #672154

    Thanks for your answer. This almost did the trick. It’s all good but when viewed on mobile it’s gone.. ?

    #672160

    Hey!

    Try adding this code to the Quick CSS:

    .responsive .single .template-blog .blog-meta {
        display: block;
        float: none;
    }

    Cheers! 
    Josue

    #672167

    That did the trick! Thanks Josue!

    #672234

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Thumbnail above post title’ is closed to new replies.