[Theme: Sidekick ] Featured image not working (image resize not picked up)
-
Hi everyone,
I just installed Sidekick and uploaded an image that was originally 2560×1920 pixels big. I attached it as a featured image to my post, then realized it was too big and went into WP’s media manager, where I resized it to 2560×403 (thus being wider than 1500px and shorter than 500px, as required by the code:
if ( $image && $image[1] >= 1500 && $image[2] <= 500 )
. However, the function call towp_get_attachment_image_src( get_post_thumbnail_id(), 'sidekick-panoramic' )
still returnsArray ( [0] => https://.../wp-content/uploads/2013/06/WP_002681-666x500.jpg [1] => 666 [2] => 500 [3] => 1 )
; the URL being for a thumbnail created of the original – not the resized – picture.I seem to be not the only person with featured image related problems: https://en.forums.wordpress.com/topic/sidekick-theme-has-no-panoramic-header-option-as-shown
I’m sure it’s an oversight on my part, and I’d appreciate any and all pointers you can give me.
Best regards,
Christian
P.S.: I’m not sure how the following quote from https://theme.wordpress.com/themes/sidekick/ goes together with the actual source code above:Sidekick will display a post’s featured image, full browser width, if its aspect ratio is at least 3×1 (width x height) and its minimum width is 1500px.
If the picture is 1800×600px, the text says it’ll work, the source code says (if I understand correctly) it won’t.
- The topic ‘[Theme: Sidekick ] Featured image not working (image resize not picked up)’ is closed to new replies.