Cubic Theme Image Centering in Entries
-
I am having difficulty centering the images in my entries. I tried floating it to the right, but then it just makes everything unaligned. Please help!
The images in my entries are floating to the left and I don’t know how to center them.
The blog I need help with is: (visible only to logged in users)
-
Hi, there are two things. Since at least some of your images are from other servers (not uploaded to your Media Library here, WordPress has less control over them. Secondly, Cubic, by default, will pull some images to the left or right outside of the margins. This typically happens on only left and right aligned images, but the complication is that some of your images are not in your Media Library so it is more difficult. We can fix this with CSS though. Go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.
.wp-caption.caption-big, .image-big { margin-left: auto; margin-right: auto; }There is a caveat to the above though. This also overrides the “image-big” styling for images that are in your Media Library, so the above is not a perfect solution.
My suggestion would be to upload all the images you use to your site Media Library and that way they can be better controlled. See the “full-width” image on this Cubic demo page: https://cubicdemo.wordpress.com/image-alignment-and-styles/ .
- The topic ‘Cubic Theme Image Centering in Entries’ is closed to new replies.