Tagged: remove
- This topic has 6 replies, 2 voices, and was last updated 8 years, 2 months ago by Pratik.
-
AuthorPosts
-
January 31, 2016 at 10:07 am #84212captain eoMember
I’m trying to remove the border and grey color border from all of the images on my site. Can anyone assist?
January 31, 2016 at 7:56 pm #84246PratikKeymasterhi @captain eo,
To remove the boxes, add following CSS code in “Appearance=> Theme Options=> Custom CSS” box
img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img, img.wp-post-image, img.attachment-thumbnail { border: none; }
Let me know if this works or not.
Regards,
PratikFebruary 1, 2016 at 5:55 am #84277captain eoMemberHi Pratik,
No, that did not work. Please see the site: http://www.gretchenwegner.com. I’ve added the custom CSS you provided but the border and gray color still show up around all the images. Thanks for your help!
Bryan
February 1, 2016 at 5:59 am #84278captain eoMemberSorry. I should be more specific. The CSS removes the border from the image, but upon hovering over the image, it shows a gray border around the image. I can remove it by making the unlinking the image but some images need to be linked so I’d like to remove it from all the images when hovering. Thanks again!
February 1, 2016 at 9:54 am #84292PratikKeymasterHi @captain eo,
Hover has that effect. You can remove that too by adding following code after the code provided previously:
a:focus img[class*="align"], a:hover img[class*="align"], a:active img[class*="align"], a:focus img[class*="wp-image-"], a:hover img[class*="wp-image-"], a:active img[class*="wp-image-"], #content .gallery .gallery-icon a:focus img, #content .gallery .gallery-icon a:hover img, #content .gallery .gallery-icon a:active img, a:hover img.wp-post-image, a:focus img.wp-post-image, .gallery-thumb a:hover img.attachment-thumbnail, .gallery-thumb a:focus img.attachment-thumbnail { border: none; background:none; }
Final note, it looks like you are using version 3.3 of catch-box. It is recommended to upgrade the theme to latest version. But please take a backup of your database and files before you upgrade though, as the version is a lot far back.
Regards,
PratikFebruary 1, 2016 at 1:57 pm #84324captain eoMemberThat worked great. Thank you! I have a new problem however. After updating to 4.3 the mobile menu is showing on the regular site. Also, “Skip ahead to content” is showing at the top of the site.
February 1, 2016 at 2:06 pm #84328PratikKeymasterHI @captain eo,
Can you refresh your cache?
The mobile menu is loading fine. We have upgraded the menu, so now it will slide from left.
Also, I cannot find skip to content.
Regards,
Pratik -
AuthorPosts
- The topic ‘How to remove border from images in Catchbox’ is closed to new replies.