Sela – format pictures on front page
-
I’m looking to manipulate the photos on the front page widget of my site.
Is it possible to custom CSS to round the edges, or present them in a certain shape?
Many thanks
The blog I need help with is: (visible only to logged in users)
-
Hi there,
Do you want to target the 3 images in the widgets below the hero section?
If you do, please try adding the CSS below to your site in My Sites → Customize → CSS.
The 50px value can be changed if you want to make the corners more or less rounded.
.home #secondary img { border-radius: 50px; } -
-
-
While you’re here Gary, is it possible to do so on other pages?
E.g. https://ashrouten.com/expeditions
Many thanks
-
For that section, please add:
.child-page .entry-thumbnail img { border-radius: 50px; }If there are any other images on the site you want to target, please let me know. If there’s more, I can bundle the css into one rule instead of having several doing the same thing.
Thanks :)
-
Hi John, again thank you this works very well.
There are other pages but I don’t want to do all. Instead is there a way I can find out how to refer to individual pages and then I can do it myself. For example, this page:
-
For images on that page, the css would be:
.page-id-1519 .entry-content img { border-radius: 50px; } -
Perfect, got it thanks Gary. Apologies I was typing another email to a John, hence referring you to as John in my previous post.
Thanks again, learnt a lot!
-
- The topic ‘Sela – format pictures on front page’ is closed to new replies.