I’d like to ask how I can center an image that has been placed in a text widget, without modifying the alignment of images in separate widgets? I’ve tried HTML (class=”align-center”), since the text widget allows you to place HTML in the text box, but I’m realizing that CSS is likely the appropriate solution to this request.
I do have CSS customization for this blog (brandabel.org).
WordPress.com themes consistently use class names like “aligncenter” so you could use class=”aligncenter” on the image to align it.
Another way would be to add a rule to your custom CSS specific to your text widget. To do this, you need to look in the page source to find out what the id for the text widget you want to modify. In your case, it’s “text-4” so you could use this.
Another way would be to use the image widget. There is an alignment option built into it.