• 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.

Viewing 16 replies (of 16 total)
  • Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Themeisle says that they cannot help. That we need to find someone to help us out, hence the reason to touch base with the forum.

    We couldn’t see your screenshot for some reason, but with the hint about cache, we will also investigate further along with the coding needed.

    One thing is clear though, the theme is not recognizing or picking up the class .wp-image-ID. We tried it out on other themes and it doesn’t respond, so we are not sure if this code even works.

    Thank you for your help anyway.

Viewing 16 replies (of 16 total)
  • The topic ‘Styling Images Independently’ is closed to new replies.