Tell me more ×
WordPress Answers 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

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

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. 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 closed questions here.

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

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