Support » Fixing WordPress » the_content font style

  • is the_content an h3 heading? i am trying to customize the font and color of the text and i am not sure how to proceed?


Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll want to start by editing the style.css file in your current theme, which is located in /wp-content/themes/[your theme’s name]/

    To alter the text overall, you might add something like this, where “color” is the text’s color and “font-family” is a list of fonts your want people’s browsers to use (if they don’t have the first, it goes to the second and so on):

    body {
    color: blue;
    font-family: trebuchet ms, verdana, lucida, arial, helvetica, sans-serif;

    filosofo – i think i miscommunicated what i want to do – i am using <!–more–> to break the post and i want to customize the way it looks in the post; i use the “white as milk” theme and i don’t like the way the tag is shown;

    the theme uses the_content so i went to the index file and changed the text but now i want to change the color, and maybe the font; what you are telling me above – isn’t that for the body of the post? and if so won’t it alter the whole thing rather than just the way <!–more–> looks?

    I see what you mean. Here’s what I did on my site. I added the following to my theme’s functions.php file:

    function add_more_class($content) {
    return preg_replace('/\#more-(\d+).*"/',"#more-$1\" class=\"more-tag\"",$content);

    That inserts the class “more-tag” into the more tag’s link:

    <a href="..." class="more-tag"> . . .

    Then you can style the link like so:

    a.more-tag {
    . . .

    great! i’ll try that – how about a link to your site for a visual? if OK, of course

    The link is my username.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the_content font style’ is closed to new replies.