• Resolved exshoesme

    (@exshoesme)


    Sorry about that, Andrew – my first time using WP forums. Thanks, Ben.

    1. I ran the regenerate thumbnails plugin you sugggested and homepage images are now clearer, so that has been resolved.

    2. The tall image issue has been resolved on the homepage as well – I removed the related post links from appearing on the page and that made a big difference in sizing.

    3. As for featured images on the top of post pages, I tried the code you suggested – at 50, 30 and 25% and none of those changed the size of the image. Here’s what the code in the child theme looks like right now:

    #tracks-child .entry .featured-image {
      padding-bottom: 50%; /* 25% */
    }

    and the images are still quite large eg: https://exshoesme.com/2014/04/16/deja-vu-1930s-gala-glamour/

    I also can’t seem to control the positioning of the cropping of the featured image. I’ve tried two separate plugins – Thumbnail Crop Position and Post Thumbnail Editor. The latter shows me the crop in the editor but when I update the post, it defaults back to the selection. Is there something in the theme code that makes it default to the original position in the image? (It’s the “blog” and “thumbnail” images I’ve cropped and saved in each instance.)

    Thanks again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Great, let’s solve these last two issues!

    For the image height, the part between the “/* */” is just a comment and isn’t used – I could have made that clearer. The following CSS will work:

    #tracks-child .entry .featured-image {
      padding-bottom: 25%;
    }

    For the cropping, the theme always centers the image. For example, if the image is wider than the space available, the left and right side will be cropped equally leaving the image centered.

    I would first adjust the height with the CSS above and then see how the images look. Then, you can find the new width:height ratio and crop your images accordingly.

    Thread Starter exshoesme

    (@exshoesme)

    Thanks, Ben. I tried the code above but it still looks the same. Going lower than 25% didn’t help either.

    Theme Author Ben Sibley

    (@bensibley)

    I just checked out the child theme’s style.css and it looks like the */ that ends the comment on line 8 got removed. This means the entire file is being commented out which is why the changes aren’t taking place.

    Here’s how it should look:

    /*
     Theme Name:   Tracks Child
     Template:     tracks
    */
    
    @import url("../tracks/style.min.css");
    
    /* =Theme customization starts here */
    
    #tracks-child .entry .featured-image {
      padding-bottom: 25%;
    }
    
    a:link {
        color: #900;
    }
    a:active, a:focus, a:hover, a:visited {
        color: #099;
    }
    article a {
        text-decoration: none;
    }
    
    /* optional - make links full opacity */
    #tracks-child .social-media-icons a,
    #tracks-child .social-media-icons a:link,
    #tracks-child .social-media-icons a:visited {
      opacity: 1;
    }
    /* change colors of facebook & twitter icons */
    .fa-facebook-square {
      color: #3b5998 !important;
    }
    .fa-twitter-square {
      color: #55acee !important;
    }

    You can either copy and paste that into your stylesheet or simply change line 8 to this:

    /* =Theme customization starts here */

    That should do the trick ??

    Thread Starter exshoesme

    (@exshoesme)

    Ahhh, so that’s it! Fixed the image size issue (and the other changes I made now showed up, too!).

    Still having trouble with the positioning of he featured image. Have tried 3 diff’t plugins – most effective is Post Thumbnails Editor, which let’s me edit both the “thumbnail” and “blog” size image. I do that, save and update post (even tried deleting and re-inserting feature image) and it reverts back to wherever it wants in the image.

    Have to go in and set featured image for 5 yrs of posts, so want to get it right before I do that! Thank you for ALL of your help, Ben!

    Theme Author Ben Sibley

    (@bensibley)

    Yea no problem!

    Not sure if this will be helpful, but the positioning of the featured images are controlled by the background-position CSS property. It can’t be used on an individual basis, but you could bulk adjust the positioning of the images up/down/left/right.

    The following would keep it set to the middle:

    #tracks-child .featured-image {
      background-position: 50% 50%;
    }

    The first percentage controls the left/right positioning and the second percentage controls the up/down positioning.

    Thread Starter exshoesme

    (@exshoesme)

    That seems to have worked. I’ll just have to be selective about which images to use as features since I can’t control the percentage on individual pages. Thanks again, Ben.

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Featured Image Resolution and Sizing’ is closed to new replies.