开发者

Wordpress - Index Page Image Resizing

I'm currently working on a blog for someone that has been designed by someone else. The design has the main index page listing articles from the blog. At the top of the design there are three buckets w开发者_运维百科here the latest stories are and they all include an image from the article.

The images all have to appear at the same aspect ratio from the article when on the index page. Yet I cannot guarantee that the user of the blog (the article author) will take the time to make sure the image is the right aspect ratio to be scaled on the home page.

Does anyone know of any techniques to get around this issue?

It also needs to work across all browsers.


You can use TimThumb which can both resize and crop it to the right aspect. It is really good!

timthumb - image crop zoom resize management


So, these boxes will display post's plus their featured images as thumbnails? Is that correct?

You could use the get thumbnail hook, and set the dimension in the functions.php file.

But it really depends on your currect code.

Are the boxes using a post loop?

An chance of showing the current index.php code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜