versus tags | How to manipulate in WordPress?
-
As far as I know (absolute beginner), images are automatically wrapped by <figure> tags in WordPress.
This creates a problem with custom CSS. It took me now hours of fiddling with my browser’s element inspector to realise that the reason my custom CSS didn’t affect my image was that the custom class name that I gave the image in Gutenberg applied to the <figure>, but not to the
.
In the source code, the
had a generic class name: .wp-image-155.
How can this be addressed? How can I apply any custom CSS to an image, if the image obtains a generic class that is not known to me? Surely the solution is not looking at the source code every time, right…?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘versus tags | How to manipulate in WordPress?’ is closed to new replies.