• Resolved jonpfraser

    (@jonpfraser)


    Hi,

    On my blog the images that are contained in galleries are not loading straight away. It seems the flexslider images are taking too long to load and once they load it messes up the layout of the posts.

    Have a look here:
    blog.reddesigngroup.com.au

    I have been searching all morning for a way to load the first image of the slider along with the rest of the images. Starting to do my head in!

    Also if there is a way to turn off the use of the flexslider on the blog index and show a single featured image while keeping flex slider active in the single post pages then that could work too!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi Jon,

    Yeah, this can happen when the loading time for the gallery images are really long, and especially when there’s a pretty large amount of gallery images. Sorry about that.

    Deactivating flex slider on the archive pages might be the best course of action for you, but it takes a little work. You would need to create a child theme, duplicate the content-gallery.php file, open it and replace the contents of line 7 with:

    <?php if ( has_post_thumbnail() ) : ?>
    
    	<a class="featured-media" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>">	
    
    		<?php the_post_thumbnail('post-thumb'); ?>
    
    	</a> <!-- /featured-media -->
    
    <?php endif; ?>

    Then it will check whether a featured image is associated with the post. Give it a shot.

    — Anders

    Thread Starter jonpfraser

    (@jonpfraser)

    Thanks for the reply, sorry i didnt get around to viewing it until today.

    This worked great, appreciate your help and thanks for the theme!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Flexslider images not loading straight away’ is closed to new replies.