How and were do I change the size on the sticky post images and the other images in the theme twentyfourteen?
I would like 8 sticky post images on the “front page” instead of 6 and I want them in a more portrait format so that I can use all my old images on my current blog (600x850px). I like the theme but all my old images are not suitable for the format.
I really can’t find the sizes anywhere.
Well, that was… interesting. In a nutshell there seem to be two things in play here:
max_posts
set to6
inadd_theme_support( 'featured-content'
quantity
set to default6
inFeatured_Content
classquantity
defines how many posts there are, but can be no larger thanmax_posts
. However while result can be pushed down by changingmax_posts
it cannot be pushed up since there doesn’t seem to be clean way provided for changingquantity
. If I read code accurately it was either meant to be input in Customizer or was there and got removed.So to change both, this is closest to sane I could come up with on Sunday evening:
Note that posts set is cached in transient, so need to re-save it with Customizer for new count to apply.
As for size – thumbnail size is used for grid version of it, see
content-featured-post.php
.The two image sizes are defined in the theme’s
functions.php
file:Add your own custom sizes or modify the values for the existing sizes.
You can use this code which includes a parameter to
hard crop your images
in different positions: