WordPress.org

Ready to get started?Download WordPress

Forums

Image size display problems (4 posts)

  1. Brigitte Ruel
    Member
    Posted 4 years ago #

    Good morning,

    I am currently using the vina theme and am having a lot of trouble with the image-size on various screens. Compare how the image for an excerpt of my St. Paddy's Day post looks on these three pages:
    http://www.vegansoiree.com/
    http://www.vegansoiree.com/category/holiday/
    http://www.vegansoiree.com/?s=potatoes

    They are all different sizes and look pretty bad. Now I can only insert one picture in my "Custom Field" and I usually scale it to whatever size looks best on my home page (the first link.) How can I insert an image in my custom field that would work in all display sizes?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

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

    You can also use the add_image_size() function to create post thumbs with different dimensions which can then be called in the appropriate template:

    if ( function_exists( 'add_image_size' ) ) {
    	add_image_size( 'cat-thumb', 200, 200, true );
    	add_image_size( 'index-thumb', 150, 150, true );
    
    }
  3. Brigitte Ruel
    Member
    Posted 4 years ago #

    Hello again Esmi,

    Thank you for taking the time to help me out. I have read this codex before, but what I don't understand is how to implement it into my blog since the Vina theme has some parameters set already with the Auto-Grabbed image feature. I contacted Jauhari about it and he explained that all I needed to do what put a picture in the custom field. This doesn't resize it in the various thumbnail boxes, all it does is take whatever size image is the one you put in the custom field box.

    I put the codex you provided above in the functions.php file, but nothing happened. What do I need to put in the custom field box for each post in this case?

  4. stylishbeachbum
    Member
    Posted 3 years ago #

    Hi Brigitte,

    Just had a look at your blog pages and the thumbnail for the St.Paddy's Day post looks fine - in the search and the holiday's listing it is a nicely cropped image. Did you fix it, or where you trying to do something else?

Topic Closed

This topic has been closed to new replies.

About this Topic