Could you please provide a link to a post where you’d like to do this, so I can take a look directly?
Thanks Kathryn
I would like them on all single posts like these ones:
https://www.gdaytaiwan.com/2017/04/20/fei-cui-valley/
https://www.gdaytaiwan.com/2017/05/11/100-anecdotes-inflation/
https://www.gdaytaiwan.com/2016/08/29/legitimate-pasta-middle-nowhere/
I’m aware it’ll be easier to blow up single photos but like the last post, I would also like to do this with the Jetpack gallery if possible.
Ah I see you’ve made some changes to the way the page displays.
Sketch’s default content width is 764px, which is why your images and galleries are that size.
You could try adding a new default custom width, but it’ll require more than just custom CSS – you’ll need a child theme or a functionality plugin.
This function should increase the content width to 1091px on single posts in addition to the conditions the theme already defines.
function sketch_content_width() {
global $content_width;
if ( is_page_template( 'fullwidth-page.php' ) || is_single() || ! is_active_sidebar( 'sidebar-1' ) ) {
$content_width = 1091;
}
}
You may need to regenerate thumbnails after adding the function if the new size isn’t reflected.
Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.
Many thanks Kathryn!
I have added the code and regenerated my photos and most of them look bigger…i guess I have to replace the lower res ones with higher res to make it full-width so hopefully that works!
Just wondering still with the Jetpack Galleries though, any way to make them bigger too? I often use mosaic and square galleries and would like them to be the same width. ie: https://www.gdaytaiwan.com/2016/08/29/legitimate-pasta-middle-nowhere/
Would like the galleries to be as wide as the rest of the content.
In theory your Jetpack galleries should follow the new content width you’ve set. If that’s not happening, you can try adding a second function in your child theme or functionality plugin, specific to the galleries. There’s an example here:
https://developer.jetpack.com/hooks/tiled_gallery_content_width/
you’re amazing! Thanks so much.
I downloaded a fuctionality plugin (wished I knew about it sooner!) and the css on the link you gave me worked a treat.
Wonderful! Glad to hear you’re all set.
the css on the link you gave me worked a treat.
It’s PHP!