WordPress.org

Forums

Is it possible to change the font on certain text? (4 posts)

  1. Megagents
    Member
    Posted 8 years ago #

    Not like bold or italic but a different looking font that isn't the normal arial.

  2. JamesICT
    Member
    Posted 8 years ago #

    You can set up different classes in your CSS and call them whenever needed.

    For example:

    <span class="fontarial">I would like this text to be arial,</span><span class="fontverdana"> but this text to be verdana</span>

    In your CSS:

    .arial {font-family: arial;}
    .verdana {font-family: verdana;}

    Of course, you do not have to use only span, it can be called via divs or using your paragraphs.

    To make it even simpler, add the classes to your quicktags.

    Lots of flexibility with colours, fonts and whatever else you want to individualise.

  3. sabinou
    Member
    Posted 8 years ago #

    Well, you can search "define font-family" in any search engine, and you will know which part of your stylesheet you can edit :)

  4. Megagents
    Member
    Posted 8 years ago #

    Ok, that's cool but I just thought of something. Could it be possible to use a custom font I downloaded? Just wondering.

Topic Closed

This topic has been closed to new replies.

About this Topic