首页 > 解决方案 > How do I to add a css class on wordpress?

问题描述

I am trying to add a class on wordpress to round images, but I don't know how could I do this. I've already added on style.css but it still doesn´t works. I'm using the Hueman Theme and I've trying to follow this sample.

How could I do this ?

style.css in Apperance>Editor>style.css

.circular-image img {
               width: 300px;
               height: 300px;
               -webkit-border-radius: 150px;
               -moz-border-radius: 150px;
               -ms-border-radius: 150px;
               -o-border-radius: 150px;
               border-radius: 150px;
}

Using

<div class="circular-image" style="text-align: center;"><img class=" aligncenter wp-image-119 size-thumbnail" src="http://ideiadinamica.com/wp-content/uploads/2018/09/10372571_10200376805178580_8449416293546333562_n-150x150.jpg" alt="" width="150" height="150" /></div>

标签: csswordpress

解决方案


Wp-admin >外观>自定义然后在“附加css”部分中,添加您的代码


推荐阅读