• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How To Add Shadow To Post/Page Images Only

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How To Add Shadow To Post/Page Images Only

This topic is: not resolved

Tagged: creative burst, image shadow

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by Kim.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 6, 2013 at 6:02 pm #61162
    Kim
    Member

    Hi. I got this code from Brian Dalton's site and added it to my style.css. It made a wonderful shadow, but I don't want the images in my sidebar to have shadows.

    img {
    -webkit-box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    -moz-box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    }

    I tried adding the .post- to the code since that is in my .css but it removed all the shadows from all images:

    .post-img {
    -webkit-box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    -moz-box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    box-shadow: 7px 7px 5px rgba(50, 50, 50, 50);
    }

    Example of the shadow I don't want in the sidebar
    Example of a page where I do want shadows

    Thanks!

    http://www.strengthforwomen.org
    September 6, 2013 at 10:39 pm #61186
    Brad Dalton
    Participant

    Hi Kim

    Brad Dalton here.

    So you only want it to effect images within the content area of posts, pages and archives and not in sidebars or widget areas?


    Tutorials for StudioPress Themes.

    September 7, 2013 at 7:29 am #61212
    Brad Dalton
    Participant

    I updated that post with 3 more examples which answer your question.


    Tutorials for StudioPress Themes.

    September 7, 2013 at 4:16 pm #61272
    Kim
    Member

    Awesome, Brian, thank you! Just what I needed. =)

    September 7, 2013 at 9:44 pm #61303
    Brad Dalton
    Participant

    Brad.


    Tutorials for StudioPress Themes.

    September 8, 2013 at 3:30 pm #61395
    Kim
    Member

    I'm so sorry! Brad!!!!!! =(

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble