Having issues centering images
-
Whenever I center larger images on my current theme (Intergalactic), they are ending up justified left instead of centered. Like on this post:
http://daredreamermag.com/2015/01/09/a-promo-video-that-repels-as-much-as-it-attracts/But in some cases, it seems to be random, like in this:
http://daredreamermag.com/2014/09/23/color-grading-video-to-match-a-photo/Any ideas how to correct this?
The blog I need help with is: (visible only to logged in users)
-
I tagged this thread for Themes Staff to help you. Please subscribe to it so you are notified when they respond. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it.
-
-
-
I think the issue may have to do with some of your images being under 1000px, such as this one:
The post is doing its centering as if it’s a 1000px-wide image, as you can see by the w=1000 being appended to the image path:
In your other post, your smaller images were inserted with “size-large” instead of “size-full” – could you try selecting “size-large” for this one as well?
-
Thanks Kathryn. When I look at the text edit mode, the image path shows width of 800. This is what I have:
<p style=”text-align: center;”><img class=”aligncenter wp-image-25465 size-full” src=”https://bladeronner.files.wordpress.com/2015/01/bearded-benj.jpg” alt=”bearded-benj” width=”800″ height=”448″ /></p>
But I see in the published post it’s the path you pasted which shows 1000. Why would that happen? In the wysiwyg editor, the “full-size” mode is 800×448.
-
Looks like this may be an issue in the theme itself. I’m going to report the issue to our developers and we’ll keep you posted here.
-
-
Have you solved this problem? Yesterday I tried the Intergalactic theme and I noticed that many of my centered images went to the left. I couldn’t fix the problem in the editor. Those posts didn’t look good and I switched back to my old theme.
The problem appeared mostly in longer posts and especially in posts where my images are linked from Flickr (html option, width 1024 px).
-
Well, yes and no. I notice that if I make larger images exactly 1000 pix wide, they’ll center fine. (As in my post today). If I have images thinner than the natural width of the text, they seem to center fine. If an image is less than 1000 but greater than the natural width of the text, then I think they will align left. I think a lot of it has to do with what the natural width is.
But I think I found a clue. I’m hoping the theme creators see this.
As an experiment, for my blog post that went live today
http://daredreamermag.com/2015/02/09/boost-traffic-to-your-wordpress-site-with-sumome/…I changed “Scroll Box” image that was thinner than 1000 pix (it is naturally 677 wide) to Medium-300. And it stayed centered. I then changed it back to Full – 677 pix, and it defaulted to the width of the text. I then enlarged it to greater than it’s natural width (to 1064 x 655), and it still defaulted to the width of the text. BUT, when I open the image editor in WP, I notice that although the width is set to Custom, the dimensions listed are 106×655. The height dimension is correct, but the width dimension is not.
Long story story, when I want a larger image, I make it’s natural width exactly 1000 pix. I make any other pix thinner than 1000 and set the width to Full, knowing that they will be centered (either to fit the width of the text or thinner).
-
Hi everyone,
I took a look at the bug report Kathryn filed and it looks like the developers are still working on this. I’ve given the ticket a bump and I’ll update you when I hear back. :)
-
Hey all,
Just wanted to let you know that I got word from the developer that a fix has been deployed. Let me know if you have any more trouble with this. :)
-
Thanks Shawna. It does seem to be working now (based on looking at older problematic posts). Thanks for the update and help. Really appreciate it! I’ll keep an eye moving forward.
-
Thank you! It works now, also with images linked from Flickr. I’m going to try this great theme again.
- The topic ‘Having issues centering images’ is closed to new replies.

