WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] removing shadow from 2012 header image, but not from page images (3 posts)

  1. sioy
    Member
    Posted 1 year ago #

    I made a child of 2012 and am testing it on local network, I added the following to the child CSS:

    .entry-content img,
    .comment-content img,
    .widget img,
    img.header-image,
    .author-avatar img,
    img.wp-post-image {
    /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
    border-radius: 03px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    I find I can adjust the border radius and box shadow easily enough by changing the values, but I only want to take the box shadow off the header image, not all the images throughout my theme.

  2. thegrassroot
    Member
    Posted 1 year ago #

    Can you provide a link to your site?

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    without having checked a site using the theme, using this line to overwrite the shadow might work:

    img.header-image,

    use a browser inspection tool to find out which css classes the header image has.

Topic Closed

This topic has been closed to new replies.

About this Topic