Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chibwe

    (@chibwe)

    Am I posting in the right forum for this kind of assistance?

    Thread Starter chibwe

    (@chibwe)

    Hi @anlino,
    Yes, I noticed that post content is lazy loaded. What files would I have to mod in order to enable lazy loading? I tried modifying the preview template partial with the code below. It worked for images that are initially loaded up on a given page. Doesn’t work for the ones loaded upon scrolling down the page. What could be causing this? Please let me know if You need more info to help clarify things.

    
    if ( $aspect_ratio !== 'original' ) : ?>
    
    	<a href="<?php the_permalink(); ?>">
    		<img class="faux-image dd-rounded-top aspect-ratio-<?php echo $aspect_ratio; ?>" src="<?php echo esc_url( $image_url ); ?>">
    	</a>
    
    <?php else : ?>
    
    	<a href="<?php the_permalink(); ?>">
    		<?php 
    		if ( has_post_thumbnail() && ! post_password_required() ) {
    			the_post_thumbnail( $post->ID, $image_size ); 
    		} else {
    			echo '<img src="' . esc_url( $fallback_image_url ) . '" />';
    		}
    		?>
    	</a>
    
    <?php endif; ?>
    

    Not sure about the first question, since I’m using a plugin option for that.

    As of excerpt color, take this:

    .preview-excerpt P {
        color: red;
    }

    Add it to your customizer > additional css section.
    All you’d have to do then is pick a the color you want, intsead of red, once you know it all works.
    How does that work for you?
    Remember to refresh your page a couple times or use incognito, if the change isn’t immediately visible.
    Hope that helps, let me know.

    • This reply was modified 6 years, 6 months ago by chibwe.
    • This reply was modified 6 years, 6 months ago by chibwe.
Viewing 3 replies - 1 through 3 (of 3 total)