WordPress.org

Ready to get started?Download WordPress

Forums

Museum Core
[resolved] museum-core: remove shadow from paragraph text, leave it on headers (6 posts)

  1. hejira
    Member
    Posted 1 year ago #

    Hey there--

    I love the shadow effect on the headline text, but would like to remove it from article or page paragraph text.

    I removed

    body {
    	background: #efefef;
    	font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
    	color: #111111;
    	text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5);
    }

    from the stylesheet.css. This removed all of the shadow effect on all text. It works for me, but I like the dimension of the effect in the headers/titles.

    Is there another more limited way to achieve this?

    Thank you--you are a doll!
    H.

  2. hejira
    Member
    Posted 1 year ago #

    actually I just removed the text-shadow line.

  3. Chris Reynolds
    Member
    Theme Author

    Posted 1 year ago #

    The best way to do this is probably to add this CSS to the Custom CSS:

    p {
    text-shadow: none;
    }

    Since <p> tags are automatically added by WordPress to your posts and formatted text, it will cover all of that stuff and leave the shadows on the headings. What it won't do is remove the shadow for other things, for instance, if you have text in a text widget that isn't wrapped by a <p> tag or lists (<ul> or <ol>), but if you needed to, you could add those to that CSS snippet, e.g.:

    p, ol, ul {
    text-shadow: none;
    }
  4. Chris Reynolds
    Member
    Theme Author

    Posted 1 year ago #

    (this way, too, you don't need to worry about hacking the stylesheet and it's adding a more limited scope to the effect, excluding it from the specific areas you want to exclude it and leaving it for everything else)

  5. hejira
    Member
    Posted 1 year ago #

    Perfect, that's just what I wanted. It looks great now.

    Now you've helped me understand how to use custom css best, rather than trying to grok and edit or "hack" the stylesheet.css file. It's better I avoid doing that until I get more versed in CSS and PHP and WordPress.

    Thanks a ton, Chris. Truly appreciate the help. <3
    H.

  6. Chris Reynolds
    Member
    Theme Author

    Posted 1 year ago #

    No problem. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic