Can't lazy load thumbnails in my theme
-
Hello
my theme is worldwide,
in the single.php the code is:// blog thumbnail
print_single_blog_thumbnail( get_the_ID(), $item_size );—————————————————————————————
in page.php
the code is:
// page content
global $gdl_item_row_size;
while (have_posts()){
the_post();// print content
$gdl_show_content = get_post_meta($post->ID, ‘page-option-show-content’, true);
if( $gdl_show_content != ‘No’ ){
$content = get_the_content();
$content = apply_filters(‘the_content’, $content);
if(empty($content)){
$gdl_item_row_size = print_item_size( ‘1/1′, $gdl_item_row_size ,’mb0’);
}else{
$gdl_item_row_size = print_item_size( ‘1/1’, $gdl_item_row_size, ‘mb45’);
}echo ‘<div class=”gdl-page-content”>’;
echo $content;
wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘gdl_front_end’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) );
echo ‘</div>’;echo ‘</div>’; // print_item_size
}
}—————————————————————————-
can you help me to make lazy load works with post thumbnails?thanks
- The topic ‘Can't lazy load thumbnails in my theme’ is closed to new replies.