Support » Theme: Forever » Adding Image Above Blog Post

  • I’ve tried to search for this but can only find topics over 1 year old so I’m hoping this is something that’s easier to do now – maybe with a plugin.

    I’m wanting to be able to add an image above my blog post title, it would not be the same image for each post.

    I posted this in the general Themes and Templates section and it was suggested that I post it here instead. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn


    Automattic Happiness Engineer

    Hi there, Forever isn’t designed to have per-page custom header graphics, like some themes are.

    If you’re looking for a plugin, I just did a quick search with the keywords

    per page custom headers wordpress

    and found these two that you might want to try out:

    I haven’t used either of these myself but they might accomplish what you’re after. If you have questions about them, you could always ask in each plugin’s support forum.

    Thanks Kathryn, I’ll take a look at these!

    Okay, I tried both of these and the first one doesn’t seem to work at all and the second one replaces the page header, it doesn’t add an image to the individual post.

    Here is an example of what I want to be able to do:

    The page header is still intact and there is an additional image just above the post title. I realize this is a different theme than “Forever”.

    Moderator Kathryn


    Automattic Happiness Engineer

    It sounds like you want to add your featured image above the post title, then? This could be done by creating a child theme with some modified files, if you’re comfortable editing PHP, HTML, and CSS.

    If you only want the featured image above the post title in single post view – like the page you linked above – then you’d want to add a copy of content-single.php to your child theme and make some edits to it to display the featured image.

    Here’s the Codex reference for displaying featured images:

    You can start by adding something like this:

    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.

    to content-single.php, where you’d like the featured image to appear, for example, just above line 8:

    <header class="entry-header">

    I haven’t tested this, but it should give you a start. There are lots more examples of how to implement a featured image thumbnail on the Codex page I linked above.

    If you’re new to child themes, here are some guides:

    That should get you started!

    Yes, that’s what I want to do. I was hoping there was another way besides futzing with the code, I just don’t have time to do that right now.

    Thanks for the info, I’ll maybe take a look at this at a later date.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding Image Above Blog Post’ is closed to new replies.