x

How can I use multiple colors on site title?

Hi.

I want to use 2 colors at least on my site title. I tried many time but it dosen't happen, just one color only.

How can I do it? Please help.

Thank you.

PONK

722 Views
Message 1 of 4
Report
3 REPLIES 3
Square

Welcome to the Community, @PONK. It might be easiest to use an image instead of text. If you use a free image maker you could use text in multiple colors with that. If you search Google you should be able to find something that will work for you.

708 Views
Message 3 of 4
Report

@PONK To employ multiple colors in title (or any) text, you'll need some simple html. Let's say that your title text consists of two words first of which will be black and the second, red. First, let's just create the simple two-word title in code:

<h2>Black Red</h2>

This will simply present the entire "Black Red" title text with the default title font color. Let's now use a bit of inline css to change the color of each word to the desired color:

<h2><span style="color:black;">Black</span> <span style="color:red;">Red</span></h2>

 Note that, instead of using color attributes as words ("black", "red"), you can use color hex codes to describe any color. So, for example, the black font color, when expressed with a hex code would be "color: #000000;" instead of "color: black;" while red would be "color: #ff0000;" instead of "color: red;"

684 Views
Message 5 of 4
Report

Thank you Adam and Paul.  I am still working, but both suggestions are helpful.

PONK

657 Views
Message 5 of 4
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.