- This topic has 11 replies, 2 voices, and was last updated 8 years, 1 month ago by
Leo.
-
AuthorPosts
-
February 14, 2018 at 4:15 am #496016
Janine
Hi, guys.
How can I get my images to have rounded corners:
https://www.w3schools.com/w3css/w3css_images.asp
Link to demo site: http://4dbf4fe2.ngrok.io/
Thank you.
February 14, 2018 at 5:05 am #496044Janine
I don’t want corners on the featured images. Thank you.
February 14, 2018 at 6:28 am #496102Leo
StaffCustomer SupportHi there,
Add your image like this:
<img src="IMAGE URL HERE" class="rounded-corner">>with this CSS:
.rounded-corner { border-radius: 16px; }February 14, 2018 at 11:18 am #496489Janine
Hi, Leo.
That’s exactly what I wanted. I changed it to:
<img src="http://stitchingincolour.local/wp-content/uploads/2018/02/clothes-1845375_1920.jpg" />Just to be clear: Each time I use an image, I will need manually open the WP text editor and edit the HTML as you instructed above. Right?
Also, before I edit as you instructed, this is what was there:
<img src="http://stitchingincolour.local/wp-content/uploads/2018/02/clothes-1845375_1920-1024x682.jpg" alt="" width="1024" height="682" />There seems to a class defined before. I guess by a plugin.
And alt=”” seems to have no value assigned.
And then it seems to specify the width and height.
Could you explain this to me, please? Thank you.
February 14, 2018 at 11:20 am #496490Janine
Oops! I didn’t realize it input the images. Please delete. Thank you.
February 14, 2018 at 3:28 pm #496685Leo
StaffCustomer SupportYes you will need to manually add in the HTML or edit the HTMl from WordPress as well.
The width and height property are the ones you choose in Add Media. All the info on that is here: https://codex.wordpress.org/Inserting_Media_into_Posts_and_Pages
February 14, 2018 at 4:22 pm #496727Janine
Thank you, Leo.
February 14, 2018 at 7:51 pm #496840Leo
StaffCustomer SupportNo problem!
February 16, 2018 at 11:34 am #498408Janine
Leo, two more questions: Re: #496685.
1) What do you mean by “or edit the HTMl from WordPress as well?”
AND
2) When I change this:
<img src=" IMAGE URL HERE " alt="" width="1024" height="682" />to this:
<img src="IMAGE URL HERE" />Am I losing something by not specifying alt, width, or height?
Thank you!
February 16, 2018 at 2:20 pm #498482Leo
StaffCustomer Support1) You can still add the image using Add Media then just add the class in.
2) Alt is the text it would show if the image cannot be loaded. If you don’t specify width and height the full image is added automatically.
February 16, 2018 at 4:11 pm #498531Janine
Thanks, Leo.
February 16, 2018 at 5:26 pm #498563Leo
StaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.