Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    114
    Plugin Contributions
    0

    Default Changing the font style and color

    Can anyone tell me how I can change the font style and color for one or two words in a sentence??

    Thanks
    Stan

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing the font style and color

    You can wrap those words in span tags, with a class name:

    ...ordinary text ordinary text <span class="specialWords">words to be set off</span> ordinary text ordinary text...

    Then style the class in your stylesheet:
    Code:
    .specialWords {
        font-family: verdana,arial,sans-serif;
        color: #112233;
        font-size: 1.2em;
        }
    Where do those words appear? And where are they defined? That will determine how you get the span tags in place.

  3. #3
    Join Date
    Aug 2008
    Posts
    114
    Plugin Contributions
    0

    Default Re: Changing the font style and color

    Where do I place the span tag??

    I am assuming, by the code you gave me, the words I need changing goes where you have "words to be set off"??

    Thanks
    Stan

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing the font style and color

    If you are entering HTML text in a description, just put the span tags around the words as I showed. If the words are in some other context, you need to tell me exactly where they are before I can advise how to add the tags.

  5. #5
    Join Date
    Aug 2008
    Posts
    114
    Plugin Contributions
    0

    Default Re: Changing the font style and color

    OK, I will have to show you what I am looking to do.

    Go to my URL www.htpradios.com/store

    Where is says "Welcome to Hot Tempered Products, right above where it asks to log in. (it is colored in grey).

    I want to change the grey to black and have "Hot Tempered Products" in red with a different font style.

    Stan

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing the font style and color

    That text is defined in /includes/languages/your_template/index.php, which you have already edited to get the "Welcome to Hot Tempered Products". You can add the tags there, too.

    define('HEADING_TITLE', 'Welcome to <span class="HTPTitle">Hot Tempered Products</span>.');

    and add to your stylesheet

    .HTPTitle {color: #ff0000; font-family: whatever, sans-serif;}

    For the rest of that text, add

    #indexDefaultHeading {color:#000000;}

 

 

Similar Threads

  1. v151 Changing colour and style of font.
    By PetleyJ in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Jul 2013, 07:54 PM
  2. How do I change the font color and font style for the tag line?
    By Beyond Dreams in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 17 Feb 2013, 10:33 PM
  3. Font size, color and style change in side boxes
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Oct 2010, 03:45 AM
  4. Trying to change overall font style and color....and make side boxes solid
    By MamaT in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 12 Nov 2008, 10:22 PM
  5. Changing font style and colour
    By Lenna in forum Customization from the Admin
    Replies: 5
    Last Post: 21 Jul 2008, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg