ThemeShaper Forums » Thematic

[closed]

Change image size in post on front page

(4 posts)
  • Started 4 years ago by galexkeene
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. galexkeene
    Member

    Hey all. Did a search and couldn't find an answer, so posing my question. I know I'm not the first to want to do this, but can't figure it out. I have an image, above the fold in a blog post, that I want to be a larger size in the real post, but in the blurb on my front page I want to shrink it down 50%.

    I can't just do .entry-content img {width: 50%;} because that would change the real post too, and I tried .home .entry-content img {width: 50%;} (don't know the .home class, but saw something about it in another post) but got no luck there either. What am I doing wrong/missing?

    Thanks.

    EDIT/UPDATE: So I was able to get it to work using .home .entry-content img {width: 150px; height: 100px;}. This is fine for right now, but I would really prefer to have the resizing be dynamic and always go to 50%, so that I don't have to make sure my images in my main post are always 300x200 (or at least that ratio). Seemed the width: 50% was resizing to 50% of the parent div, rather than 50% of the image's size. What is the trick/code to have the image scale down rather than worry about its parent div's size?

    Posted 4 years ago #
  2. have you looked into thumbnail plugins? Justin Tadlock's 'get the image' is always highly regarded here, though i haven't used it yet myself. or the child theme Commune uses timthumb. and i've used simple post thumbnail from press75.com and worked that into my theme. as far as i know, there is no CSS jedi trick to do what you want. you are probably going to need a plugin and an adjusted template. check out Commune to see what I mean.

    http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/

    Posted 4 years ago #
  3. galexkeene
    Member

    Thanks for the reply. I went and got 'get the image', but was unable to find anything good as far as topics here on its use. Does anyone know of any site with a guide on how to integrate it with Thematic? I'm sure I can figure it out, but I'd rather not waste the effort if someone's already set up a guide. Thanks!

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.