• Hi,

    I’ve just started using wordpress and am finding that blog pictures aren’t loading in the Klopp theme. I’ve so far tried the following: uninstalling and reinstalling the theme (no effect), changing theme (fixes the issue), removing all plugins (no effect), clearing cache (no effect).

    I’ve looked at the sample Klopp site and the blog pictures do load so it can’t be a general issue with the theme. I wondered if maybe there is an option somewhere to get pictures to automatically load? What currently happens is there is a grey box containing the text “VIEW” which loads the picture when you click on it.

    Here’s my website: https://www.batterseablooms.co.uk

    Many thanks in advance,

    Tom

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The theme has this logic:

    <div class="featured-thumb col-md-4 col-sm-4">
    			<?php if (has_post_thumbnail()) : ?>
    				<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_post_thumbnail('klopp-pop-thumb'); ?></a>
    			<?php else: ?>
    				<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder2.jpg"; ?>"></a>
    			<?php endif; ?>
    		</div><!--.featured-thumb-->

    It says if the post has a thumbnail then the thumbnail image will be used, otherwise the placeholder image will be used.
    https://themes.svn.www.ads-software.com/klopp/1.0/framework/layouts/content-grid.php

    The docs for has_post_thumbnail: https://developer.www.ads-software.com/reference/functions/has_post_thumbnail/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The issue seems to be apparent on the theme’s demo: https://wp-themes.com/klopp/ – For the post “Worth a thousand words”.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Temporarily, can you try editing the ‘/framework/layouts/content-grid.php’ file (within the Klopp theme).

    Add this line at the very top of the file

    var_dump($post);

    Let us know when you’ve done this.

    Thread Starter rzlaprime

    (@rzlaprime)

    Thanks for your help Andrew,

    It sounds like we are close to a solution. I couldn’t find the file you specified though – looking in Appearance > Editor > Select theme to Edit:”Klopp”, and then looking at the options down the right hand side of the screen. I realise this is quite possibly a stupid question but am I looking in the right place?

    Many thanks,

    Tom

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oh sorry you’ll need a file editing tool for this that’s available in your hosting provider’s control panel. Something like “File manager”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘blog images not showing in Klopp theme’ is closed to new replies.