Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 37010

undergroundnetwork on "[Plugin: Jetpack by WordPress.com] [Jetpack:Photon] Is there a way to use Photon images on pages?"

$
0
0

Cancel this.. it appears that Jetpack was not resizing the image as it was buried in CSS of sorts, I guess... so I tweaked things and it works great:

$style = '';
if ( has_post_thumbnail() ) {
	$thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id() );
	$style = esc_url( $thumbnail_url );
}
?>

<section id="intro" class="marquee"style="background-image: url(<?php echo apply_filters( 'jetpack_photon_url', $style, 'resize=1260%2C700' ); ?>)">

Works great now!


Viewing all articles
Browse latest Browse all 37010

Trending Articles