Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am the webmaster of Palo Alto High School's online publication, The Paly Voice. We're using Wordpress, and for some reason occasionally chunks of stories change fonts. Here is an example.

I inspected it, and there's no surrounding element - just text. But why? How can I fix this?

share|improve this question
add comment

closed as off topic by Rarst Oct 11 '12 at 21:07

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 2 down vote accepted

The paragraphs that show up differently are not inside <p> tags. Therefore the font rule in your story.css file (line 111) does not apply to them. To fix this you can do one of two things:

  1. Put the paragraphs that are showing up with the wrong font inside <p> tags.
  2. Add a new rule in story.css for the entire section that sets the font. The rule would be something like this:

    .story-content {
        font-family: Georgia;
        font-family: Georgia, serif;
        font-size: 14px;
        line-height: 1.7;
        margin: 20px 0;
    }
    
share|improve this answer
    
Fixed. Thank you! –  tekknolagi Oct 12 '12 at 4:51
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.