• Resolved wp

    (@voipben)


    Hi,
    I only found one reference to the featured image in the theme’s files, and it changes how featured images are shown as thumbnails on the index page, not the post pages.
    I’d like to move featured images on individual post pages (using a child theme) so that they appear below the post titles, instead of above. Can’t figure out a way to do this. Anyone have ideas?
    Thanks!

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter wp

    (@voipben)

    Thanks! I managed to control the index.php image size via CSS. Works great.

    The only problem is index.php still pulls the 900×300 image, even if I define another size as you suggested. WP generates an actual image with 900×300 appended to the end. I can set a specific size, but it still uses this particular image and resizes it. So, it still has that slightly distorted ratio. (Barely perceptible, depending on image.) I’d really like index.php to use the full-size, unmodified featured image–or a copy with same dimensions.

    It’s really not a big deal, but if you have any ideas, they’d be welcome.

    Moderator Kathryn Presner

    (@zoonini)

    Right – CSS alone won’t change the original image size. Did you add a second function as well? The function is what changes the actual size of the original.

    Or you could try modifying the earlier function to add a size declaration for the second image size:

    function cerauno_child_featured_content() {
      add_image_size( 'cerauno-header', '600', '300' );
      add_image_size( 'cerauno-home', '600', '300' );
    }
    add_action( 'after_setup_theme', 'cerauno_child_featured_content', 11 )

    I haven’t tested this, but feel free to give it a try.

    You may need to run Regenerate Thumbnails after making that change.

    Let me know how it goes.

    Thread Starter wp

    (@voipben)

    Okay, Kathryn, I’ve got to say this once and for all: you are AMAZING. I had in fact done everything correctly, but running Regenerate Thumbnails is what allowed my WP installation to realize this.

    There are plenty of very helpful people her on the forum, but it’s rare to find someone with the depth of knowledge to help out with my issues, as I only come here for the really complex ones. You are an exception. And exceptionally nice, to boot.

    Thanks so much for all the help. It was incredibly nice of you to go back and forth on this for so long. Wish I could give you a thousand thumbs up or something.

    Moderator Kathryn Presner

    (@zoonini)

    Aww. You’re most welcome. It’s always extra-challenging to help someone when I can’t see their site, but I’m so glad you were able to get the result you wanted and I appreciate your thoughtful thank you. ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Moving featured image in single posts’ is closed to new replies.