Skip to content
Public Ticket #171

Gallery loading

Conversation thread

PenciDesign replied

Staff Reply

Hi,

If you want to do that with Single Slider style of gallery, please replace this code to:

\
$output .= '<img class="single-slider-img" src="'. $get_masonry[0] .'" alt="">';

Best Regards,

PenciDesign

tableno7 replied

Customer Reply

Hi there, that fixed the gallery loading issue when the post is a gallery type (although the first image usually doesn't load before the slide changes, so it still 'pushes' the page down when it loads)

however if I insert a gallery into the main part of the page, the up/down issue with gallery loading returns. How can this be fixed? Thanks! 

tableno7 replied

Customer Reply

thanks for the prompt response!! worked! 

PenciDesign replied

Staff Reply

Hi,

To do that, you need to edit the file in this theme.

Please replace this code to:

\
<img class="" src="<?php echo esc_url( $the_image[0] ); ?>"<?php if ($the_caption) : ?>title="<?php echo esc_attr( $the_caption ); ?>"<?php endif; ?> />

Best Regards,

PenciDesign

tableno7 started the conversation

Conversation Start

Hi there, is there a way to stop the page moving up and down as each image loads in the gallery? Every time an image loads the text moves up like there's no image placeholder there. 

Want to join this conversation or access attachments? Sign in first.