• Resolved Giedrius

    (@giedriukas)


    I need a code that will eliminate drop shadow from a selected single featured image. Please help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • WEN Solutions

    (@wen-solutions)

    Would you please provide the link of your site ? It help me to address your problem easier.
    Thanks

    Thread Starter Giedrius

    (@giedriukas)

    Yes, please go to https://www.biciuliams.lt (do not pay attention to lithuanian language)

    WEN Solutions

    (@wen-solutions)

    Remove ‘box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);’ from style.css line 367

    Thanks

    stephencottontail

    (@stephencottontail)

    Just be aware that if you edit the theme files directly, you’ll lose those changes if the theme is ever updated in the future, to fix bugs or security issues or to add new features. Instead, you should either use a custom CSS plugin or your theme’s built-in custom CSS option, if one exists:

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

    (@giedriukas)

    Thanks WEN and Stephen. It does remove shadow, yet, from all posts. I want it to be eliminated just from my last post but to remain in previous ones. Hopefully there is a way to do it.

    stephencottontail

    (@stephencottontail)

    Try this code instead:

    .post-258 .attachment-post-thumbnail {
    	box-shadow: none;
    }
    Thread Starter Giedrius

    (@giedriukas)

    Great! It works, Stephen! Can you explain how have you figured out the number, I mean .post-258? How do I get i for future posts, if I need to remove it again?

    WEN Solutions

    (@wen-solutions)

    Find the Screenshot It may help you.
    Thanks

    Thread Starter Giedrius

    (@giedriukas)

    Thank you WEN, now I’ll be able to find it myself.
    Thank you guys again, I appreciate your support.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Twenty Twelve – removing drop shadow from a selected single featured image’ is closed to new replies.