Displaying “featured image”
-
I’m working through how theme twenty-eleven handles the “featured image” capability.
At first, I wasn’t getting any image to display – just an instant “flash” of the image then concealed by the body of a post or a page.
Doing some extensive googling – I discovered that this theme requires the “featured image” to be as wide as the header image.
(reference this thread: https://en.forums.wordpress.com/topic/twenty-eleven-problem-with-featured-image/)
Increasing the pixel width of my image file indeed caused the theme to display the image – but instead of putting the image in the preceding area of each post, it puts it uses it as the header image when specifically addressing a post.
It doesn’t display a image when simply scrolling though a collection of posts – only by calling up a page or post directly. (as in clicking on a hyperlink to the permalink defined for the post/page)
This functionality is actually closer to what I’m hoping to achieve – I want to replace the header image file based on the top level menu navigation. (which I presume will require some PHP mods to functions.php)
But for now – I’d be happy to know exactly how theme twenty-eleven employs the “featured image” capability – and perhaps why it seems to employ it differently than other themes.
Many thanks!
- The topic ‘Displaying “featured image”’ is closed to new replies.