If you just want the solution

CSS

.instagram-media {
    min-width: 235px !important;
    width: 60% !important;
}

What’s the issue at hand?

Instagram post embedding is really useful in Wordpress. The premise is tantalizingly simple: just copy and paste the Instagram URL into your post, and Wordpress handles the rest. The picture will magically appear!

To Wordpress’s credit, what I just described works basically perfectly to that point. Whenever I paste in my specific Instagram URL, the picture renders in the post.

However, there’s one major flaw.

The posts are left-aligned by default, which is fine, but there’s no way (if there is a way, please let me know — I’ll replace this whole darn article with it!) in the Visual Editor to center the Instagram embed in the post.

#wordpress #css #html #software-development #programming

How to Center Instagram Iframe Embeds in Wordpress
1.55 GEEK