Can anyone tell me how I can change the font style and color for one or two words in a sentence??
Thanks
Stan
Can anyone tell me how I can change the font style and color for one or two words in a sentence??
Thanks
Stan
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:
Where do those words appear? And where are they defined? That will determine how you get the span tags in place.Code:.specialWords { font-family: verdana,arial,sans-serif; color: #112233; font-size: 1.2em; }
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
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.
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
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;}