Support » Themes and Templates » global font?

Viewing 15 replies - 1 through 15 (of 24 total)
  • I’m not sure I understand what you’re asking. Do you want to set a font to be displayed as the “default” on your blog, or edit an actual font type? Because the latter brings up at least one point: there are no fonts in WordPress.

    No matter what I try I cannot change the fonts in the posts.

    This was my last attempt
    .storyContent ul li {
    font-size: 150%;
    list-style-type: disc;
    margin-left: 10px;
    padding-left: 5px;
    color: #222;
    background: #eee;


    No matter what I put in here it does not change a thing. No matter what I put in the index for the font using the <h1>,</h1> It just doesn’t change. something is over writing what I want it to do.

    The same thing in my header. even though <h3> says center it justifies left. I am really getting frustrated figuring out how this code is suppossed to work. I have tried everything that makes sense.

    I don’t know what Theme you are using, but check in the style.css for body {} and see if a base font is set there.

    If it is, you can change it there. That is where it is “supposed” to be to set the default font throughout the entire document, since using more than one or two fonts is not very “cool”, but still done.

    To override a font in any section, first, make sure that you are in the “right” class or ID. I will often think I am and when I really get down to it, I’m not. Pain in the tuckus but it happens, so I warn.

    Second, make sure that every element of the font, as set by the PARENT class or ID, is overwritten.

    So if the parent sets the font-family, font-size, color and so on, it will control whatever the child has, so if you just change the font-size, it will still be the parent’s font-family and color. If you want to change all, change all. But check the parent above, which in your case is HEADER.

    I hope that helps. Part of the fun of playing CSS detective. And if you need more help, post a link to your site and the CSS detectives here might be able to track it down better for you.

    Iwasn’t clear I just want to change the size right now. I like larger fonts for easy reading. The code I posted is from the style.css it is the only thing that had anything to do with storycontent which is what i wish to change the size in. It appears ewvrything uses the same font and size except the header.
    here is the site:

    I wanted to take a look at your CSS but in order to do that, you have to validate the HTML first. That might be where your problem is. You might have an open tag code. Why don’t you do that and then see if that changes things. If not, post again and we’ll take another look.

    what do you mean by validate the html??

    Check out my site on validating your web page and it will tell you all you need to know and give you the sites to help clean up the code.

    You can add .storytitle a { font-size: XXpx;} to change the size. I don’t know if that’s the “proper” way to do it, but it works.

    …oops, I was thinking you wanted to change the title font

    Perhaps a preemptive strike against your next question? 🙂

    There is no need to validate for us. Crikey what next ? Just look in the CSS. In body the font initializes at 62.5 % for IE. Then in body as well it is set at 13px I think. Adjust to taste. Then look for p. That is the font for all paragraphs. I do not understand it anyway because it has two sizes. Enjoy.

    Yes, there is a need to validate. There are enough problems with code to cause all kinds of problems.


    I understand that your page won’t validate, and I understand the frustration of trying to change a theme to make it your own. There are a lot of helpful articles in the Codex, documentation for using the program, at that should help.

    You need to go through the list of errors that you get and fix them on your site. If it says there is a DIV that is not closed, you have to track it down and fix it. If you don’t want to learn how to do all of this, and it is a high learning curve, then I have a better recommendation.

    There are now over 200 Themes available to choose from. Probably a lot higher number than that. These tend to be “fixed” with validation errors and such before distributed. Find one that “matches” what you want to do, as close as possible, and then start from there and go slow and simple.

    At least you won’t have to plow through code fixing things.

    I have a week into this one. I am starting to understand there are problems with the theme. The first fewe validatiors didn’t tell me anything. But the doctor did explain what was wrong line by line. Now I get it. I know a bit of html but CCS and php are alian to me. Are there any GUI type editors for this new code? It seems like he did allot of things wrong.

    Like <div class=”storycontent”></div>
    This is the way he did it all throughout the theme

    I believe it should be <div> <class=”storycontent”></div>

    Is that correct?

    I also didn’t know he assigned to all the text in the theme. this is why when I tried to change it using <h5> it didn’t work. I may be able to figure it out yet.

    The bad part of all the text using is I have to change all of the text to the same size. Not what I wanted to do. I am going to have to figure out how to re-assign the individual areas their own font size.

    I am planning on getting a book. Any suggestions?

    For reference this was one of the themes from the contest. The only theme I thought would be easy enough to edit to what I want. It might have been easier to learn the code and build on from scratch. I don’t know how to do the fancy stuff like java script, boxes and cells.

    Like <div class=”storycontent”></div>
    This is the way he did it all throughout the theme

    Yup, that’s a correct way

    BTW I tried the codex it is not up to date and allot of things I tried was just plain wrong. Like the string for the comment popup.

    Do you know where there is a color chart online? what codes does WP accept? Building things on blogger was allot easier but you could not get at the template. here is my blog

    they upgraded their servers and there has been nothing but trouble ever since.

    Well the validator says that is an open DIV so now what?

    To change the text is of the post content, add the following to your css file.

    h5 p {
    font-size: 20px;

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘global font?’ is closed to new replies.