WordPress.org

Ready to get started?Download WordPress

Forums

Virtue
[resolved] How to remove grey shadows/borders around pictures? (7 posts)

  1. NakyD
    Member
    Posted 9 months ago #

    Hi!

    I would like to have all pictures on my site without any borders/shadows/hover effects so they don't stand out from the white background. Now all pictures that I add to content area seem to have grey borders/shadows/hover effects. Could you please advice how to remove those effects? And should I create a child theme to do that?

    Here's a link to my site: http://www.nakydesign.fi

    Thanks a lot!
    Minna

  2. designbyjesseR
    Member
    Posted 9 months ago #

    Yeah create a child theme! :-) try inserting this rule declaration to your child theme:

    [class*="wp-image"] {
    border: none;
    box-shadow: none;
    transition: none;
    }

    [class*="wp-image"]:hover {
    box-shadow: none;
    }

    how did it work out? :-)

  3. Kadence Themes
    Member
    Theme Author

    Posted 8 months ago #

    Hey,
    This is how I would do it. Add this code to your custom css box in theme options.

    [class*="wp-image"] {-webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;border:none;}[class*="wp-image"]:hover {-webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;border:none;}

    Kadence Themes

  4. NakyD
    Member
    Posted 8 months ago #

    Brilliant, this worked just perfectly! Thank you :)

  5. anthony4370
    Member
    Posted 8 months ago #

    And thank you also I was having the same problem

  6. jarrii
    Member
    Posted 7 months ago #

    Hi, I used your code, but it does not work. See my webpage http://www.kamnarstvi-zazvorka.cz , image is on footer on the right side. I would like replace shadow around container wrap as well. Can you help me?

  7. esmi
    Forum Moderator
    Posted 7 months ago #

    @jarrii: If you require assistance then, as per the Forum Welcome, please post your own topic.

Reply

You must log in to post.

About this Theme

About this Topic