• Resolved Squirrel99

    (@squirrel99)


    Hello,

    I have two questions regarding “Featured Image”. Sorry, to keep bothering.

    1) How to change the alignment of “Featured Images” in the main homepage from left to center? Currently all the featured images of my posts are shown on the left. I need to align them to be in the center. Which page (style.css or functions.php) should I edit? What is the code that I should I edit?

    2) How to set a one size for all the featured images? I have tried “Regenerate Thumbnails” and “AJAX Rebuild Thumbnails” plugins but, the Featured Images on my homepages are not uniformed. Some are way too large and some are way too small.

    Example, I used this codes in functions.php in my previous theme:
    // Thumbnail sizes
    add_image_size( ‘thumb-small’, 160, 160, true );
    add_image_size( ‘thumb-medium’, 520, 245, true );
    add_image_size( ‘thumb-large’, 720, 340, true );

    But, these codes are not working in GeneratePress. How do I go about it?

    Any help, much appreciated.

    Thank you.

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

    (@edge22)

    Hi there,

    1. Actually, the default styling of featured images is center. Can you link me to your website so I can see what you have set up?

    2. This isn’t possible at this time, but will be added in the near future to our Blog addon. Of course, you can build a child theme to use your own specifically sized featured images if you wish ??

    Theme Author Tom

    (@edge22)

    Any updates for me?

    Theme Author Tom

    (@edge22)

    Just an update – our blog add-on now allows for featured image resizing and alignment.

    Going to go ahead and mark this as resolved.

    Post back in here if you need more help ??

    mine is also align as left. but i want to have my text next to the image. but i can’t figure out how or where to edit the css or style for that matter.

    there is nothing in the css that says thumbnail.
    or even in the content file.

    Theme Author Tom

    (@edge22)

    Our Blog add-on allows you to easily set your featured image to the left or right next to your text in the blog.

    It’s do-able using CSS as well, something like this may work:

    .post-image {
          float: left;
    }
    
    .post-image img {
          max-width: 250px;
    }

    this works good. but when we click in post link on home page and open post page the featured image again goes about post title.

    Theme Author Tom

    (@edge22)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Featured Image Size & Alignment’ is closed to new replies.