• I have looked all over the web, but still can’t seem to find out how to remove the shadow around the images I put in the page. It’s a box shadow that surrounds all of the images with a small border.

    Any help would be appreciated, Thanx.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try adding this coding into your CSS, it worked for the Twenty Twelve theme anyway:

    .entry-content img,
    .comment-content img,
    .widget img,
    img.header-image,
    .author-avatar img,
    img.wp-post-image{box-shadow: none;}
    CrouchingBruin

    (@crouchingbruin)

    It always helps to add a link to your site whenever you post a question. Otherwise, it is virtually impossible to provide a specific suggestion.

    Thread Starter dservice

    (@dservice)

    Thanx Mama, I have seen various snippets of code on the web, and have tried them all (including your code snippet). Unfortunately, none of them seem to work for me.

    To: Crouching, I am doing this website for a client, and they need me to keep it under wraps for now, they are afraid of competition. If anyone loads Twenty Ten as the default theme, add a picture to a page, it will have the shadow/border around it. It’s not something I did, just the coding in the themes core. I know there is way to eliminate this, but I am just not finding the solution.

    CrouchingBruin

    (@crouchingbruin)

    Do the photos have a caption? You can try adding this CSS rule:

    .wp-caption {
       background: transparent;
    }

    Thread Starter dservice

    (@dservice)

    No, the photos do not have a caption, Crouching. This seems to be a very common issue, I have seen countless questions about the border/shadow on the web. Leafing through the Style CSS sheet, I see a few lines of code that could account for this, but when I comment them all out, the border/shadow still remains. I don’t have this problem with the other themes I have used, so I don’t think it’s a core WordPress line of code.

    CrouchingBruin

    (@crouchingbruin)

    Very strange. I just added two pictures to this page and the only picture which had some sort of shading was the one with a caption. Have you tried disabling all of your plugins? Sometimes, a gallery plugin or an image plugin (like Fancybox or Easybox) will add some styling to images.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove shadow around images’ is closed to new replies.