Dual Title Colour Problem
Hi there! Thanks for great theme firstly. But i have a problem with a dual title colour.
http://img-fotki.yandex.ru/get/6523/...2ac_ab3d8e48_L I want to highlight my title like "com." - with one colour, "press" - with another. I have read about firstpart code, but simply didn't find where to edit or paste it Thanks |
The blog title is set in the virtual sub-template header.php and comes from a WordPress function. So you would want to replace that whit a hard coded text and put the two color code there.
|
Thanks! I did
HTML Code:
<h1 id="sitetitle"> http://img-fotki.yandex.ru/get/6623/...3d6_25477669_L How can i fix it? Thanks |
Currently there is no way to do this. the code will split the title in half to have the dual color. So if your title is 15 characters, the split will be at 7
I'll create an RFE for this |
Quote:
Code:
<a href = "http://testagain.hostenko.com"><span class="firstpart">com.</span>press</a> |
jerryc: good idea, I had the same one and tried it but it doesn't work, the whole line becomes the same color.
|
Quote:
Simon, did you do something else, like maybe in the css, to get both colors to show? |
it has to do with how the code that parses the dual color titles works and spaces that are added in. I've created an RFE asking for more control. see RFE 113-02: allow Dual Color to specify where the color change happens
|
Quote:
|
Quote:
HTML Code:
<span style = "word-spacing:0px;"> ... </span> |
I've played with this and created an RFE asking for more control. Feel free to mess with the code and try different things, maybe you will find a way, but I think it has to do with the parsing of the code and what results. You will have to dig into the theme code.
|
Quote:
|
The javascript doesn't look like it is checking for a preexisting span.firstpart so it will try to parse the text of the title anyway.
There's a bug in the code that inserts an extra space after the closing span tag in includes/get_javascript.php. See this related thread with updated code to allow checking for punctuation. You could use this mod and add the period to the section of tests. |
All times are GMT -6. The time now is 07:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.