How to remove/hide image border in WordPress Twenty Eleven child theme
-
I installed WP version 3.8.1, WP theme Twenty Eleven version 1.7, and created a child theme to customize my style.
I copied part of content (those I want partial or complete change) from style.css in Twenty Eleven into my child theme.
I want to remove or hide the border of images attached to posts and pages, include those listed in home page and category/parent pages.
I tried tips that works fine for many other people, but unfortunately, I got no luck.
These tips (editting style.css) are:
Tick #1:
img[class*=”align”],
img[class*=”wp-image-“],
#content .gallery .gallery-icon img {
border: none;
}Tick #2:
for Tick #1, change “border: none;” to “border: 0;”Tick #3:
img[class*=”align”],
img[class*=”wp-image-“],
#content .gallery .gallery-icon img {
border: 0px solid #ddd;
padding: 0px;Tick #4:
under /* Image borders */, change the values of all “border-color” and “background” to #fff or #ffffff.I tried to change post format from image to gallery, but still no luck.
Here are the links to index on Home, and Category, Page, and Post
I hided the image caption, and there is no bottom border of images in index.
Any help will be highly appreciated.
- The topic ‘How to remove/hide image border in WordPress Twenty Eleven child theme’ is closed to new replies.