Home › Forums › WordPress Themes – Premium › Preference › Blue line under all uploaded images
- This topic has 7 replies, 19 voices, and was last updated 9 years, 6 months ago by
Sushil Adhikari.
-
AuthorPosts
-
May 23, 2014 at 4:46 pm #15170
nigel arnold
MemberHow do I remove the blue line that seems to appear under all images when they are inserted into the page ?
May 23, 2014 at 7:42 pm #19936Sushil Adhikari
ModeratorDo you want the bottom border to be removed on “all” images or just select images?
May 24, 2014 at 4:10 pm #19942nigel arnold
MemberI think I would like to know both if it is easy – sometimes the border looks ok with an image but other times maybe not so.
I can get away with just being able to turn it off for selected images because then I have the choice of having it or not.
May 24, 2014 at 9:31 pm #19944Sushil Adhikari
ModeratorTo remove the borders altogether, you can do:
img {border: none;}
To target specific images, this gets a bit more tricky, but you can do that with a few ways. If it’s an image you are manually adding to a widget, post, or page, you can do an inline style on the
tag like:
<img class="alignleft" style="border:none;"
….etc. Make sure “style” is after the “class”.
However, to show you where the border is being applied to, you can also choose which one to do the border:none with:
.entry-thumbnail img, .img-intro img, .img-intro-left img, .img-intro-right img, .img-intro-none img, .imageborder, .contact-image img, .entry-attachment img, img.alignnone, img.alignright, img.alignleft, img.aligncenter, div.wp-caption img { border-bottom:8px solid #78a5b6; }
May 24, 2014 at 10:09 pm #19945nigel arnold
MemberSorry I know nothing about scripting which I agree does not help !
Anyway trying to do your option 2 – which look the easiest – I have uploaded a picture then gone into text view and added the code ….. style=”border:none into the code below but it has no effect ie the blue line is still there – am I on the right track or a million miles away ?
May 24, 2014 at 10:49 pm #19946Sushil Adhikari
ModeratorNo worries…Here is another possibility… to disable the border (or make it appear it is), if your images are on a white background, you can change the colour setting for the image border to white. Go to Appearance >> Customize >> Colours >> Image Border
Are you using the child theme for Preference, or do you have Jetpack installed, or a plugin like Simple Custom CSS ?
May 25, 2014 at 1:19 am #19947nigel arnold
MemberThanks now I understand it is a border I found this video which shows the change quiet well – just in case anybody else is as dumb as me on such matters ! ?
https://www.youtube.com/watch?v=pwwhH-WQYzY
Many thanks
May 25, 2014 at 2:29 am #15171Sushil Adhikari
ModeratorHey…good job. I work with code so many times and rarely delve into the WordPress hidden functions, such as the advanced tab on the image window, I didn’t even know what style and class field was there :silly:
-
AuthorPosts
- You must be logged in to reply to this topic.