Styling Images Independently
-
Good day folks,
We are trying to style some images in one of frontpage section of our website.
We want each image to have a different style in border and shape.
Initially we tried to style the images separately using their apparent attribute or class (wp-image-xx), but it didn’t work.
We also tried using the class selector while matching elements based on the contents of their class attribute, but none of the combinations worked either.
We tried adding an attachment ID to the class images using the filter wp_get_attachment_image_attributes while adding a snippet code in the functions.php and it didn’t work.
We noticed that the only way to style the images differently was through playing with the .img attributes directly (tested via inspector).
We wonder if there is a plugin that could help us with this or a plugin that has an HTML editor for the main page in real time to do these changes.
Could you give us a hand with this?
In advance, thank you for your help and interest.
- The topic ‘Styling Images Independently’ is closed to new replies.