WordPress.org

Ready to get started?Download WordPress

Forums

Forever
Adding Image Above Blog Post (6 posts)

  1. ReneeL66
    Member
    Posted 6 months ago #

    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.

  2. 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:

    http://wordpress.org/plugins/custom-header-extended/

    http://wordpress.org/plugins/wp-display-header/

    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.

  3. ReneeL66
    Member
    Posted 5 months ago #

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

  4. ReneeL66
    Member
    Posted 5 months ago #

    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:
    http://jesscarlson.com/let-me-share-some-cool-stuff/

    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".

  5. 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:

    http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    You can start by adding something like this:

    <?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      the_post_thumbnail();
    }
    ?>

    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:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    That should get you started!

  6. ReneeL66
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic