|
Page 1 of 1
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Text Colour
Hi
I've changed some of the graphics in my forum and I'd like to change the text colour that goes in the titles of all the boxes such as 'Menu', 'User Block, 'Poll', 'Top Posters' etc, but not in the top menu bar (the one that goes: Home / Forum / Search / FAQ / Register / Log in). Can someone help please?
I did search for this, honest!
|
#1 Thu 10 May, 2007 13:46 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Cristina 
Joined: August 2006
Posts: 43
Location:  BDL (Milan)
|
 Re: Text Colour
Hi
I've changed some of the graphics in my forum and I'd like to change the text colour that goes in the titles of all the boxes such as 'Menu', 'User Block, 'Poll', 'Top Posters' etc, but not in the top menu bar (the one that goes: Home / Forum / Search / FAQ / Register / Log in). Can someone help please?
I did search for this, honest!
Most of the colors are specified in the CSS.
The way to proceed to change a color is first of all finding in the template the class of the element you want to change, then look for that class in the CSS and change the color property for that element.
____________ Non c'era la legge sul pericolo...
|
#2 Thu 10 May, 2007 15:34 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
Can you give me an example of what code I should look for and in what file, say if I wanted to change the text in 'User Block' using 'ice' template in 'mg_theme', please?
|
#3 Thu 10 May, 2007 17:05 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Text Colour
Can you give me an example of what code I should look for and in what file, say if I wanted to change the text in 'User Block' using 'ice' template in 'mg_theme', please?
- You need first to open that block template to check the code: templates/mg_themes/blocks/user_block_block.tpl
- The code you are looking for is: <span class="name">{U_NAME_LINK}</span>
- The class is called NAME as you can see... so you have to look for this class in the CSS and change the properties.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Wed 16 May, 2007 01:50 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
I'm using the Ice template, and I've opened style_ice.css in templates/mg_themes, but the only mention of the word NAME in it is 'post-name'. I've tried changing the color: to #FFFFFF (which is the colour white), but it made no difference. Does anyone know what is going wrong?
|
#5 Wed 16 May, 2007 20:03 |
|
tonyf12
Joined: March 2007
Posts: 204
Location:
|
 Re: Text Colour
Check the common.css style sheet.
|
#6 Wed 16 May, 2007 20:32 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
I can't find a common.css anywhere in the forum. I can find a folder called 'Common' but it doesn't have an ice css file. Can you clarify please?
|
#7 Wed 16 May, 2007 21:40 |
|
xonio 
Joined: May 2007
Posts: 3
|
 Re: Text Colour
Hi tc1967uk.
At the "/templates/mg_themes " folder you may find 2 .css files:
common.css
FAP.css
and a .css file for each colour style (style_ice.css, style_gray.css,...)
for the apearance generation, Icy Phoenyx look first for common.css and then for the colour style you set (style_ice.css for you)
you may have the file common.css, anyway if you dont have it (i dont think so) you can create it with the following content
.name {
color: #FFFFFF;
}
It would change the color in all mg_themes, but if you insert this code in style_ice.css, it will be aplyed to the ice style (i hope)
|
#8 Thu 17 May, 2007 12:41 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
I tried your suggestion in ice.css, xonio, but it didn't work.
There is a FAP.css and a .css file for each colour style, but no common.css. Is this a file from the latest update, as I still haven't applied the patch?
|
#9 Thu 17 May, 2007 17:24 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
Hello! Anyone have any suggestions for this?
|
#10 Sat 26 May, 2007 10:48 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Text Colour
I'm sure that it will work if done properly... and if can't get it to work, just remove the class and hardcode style in the tpl.
When creating and using CSS classes you should pay attention to CLASSES and their hierarchies, because some classes behavior may be linked to their parent containers.
The way to change text color in HTML using the STYLE attribute is:
<span style="color:#888888;">TEXT</span>
Choose the way you think is the best for you.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#11 Wed 30 May, 2007 12:33 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
I finally found what I was doing wrong - I was missing the right version of style_ice.css because I hadn't upgraded to 1.1.0.15
The code I needed in this was:
/* forum index */
.forumlink, .forumlink-new {
font-size: 12px;
font-weight: bold;
line-height: 1.3em;
color: #113355;
and just changed the colour. This takes care of most of the title text in boxes such as 'Statistics' and 'Top Posters'. However, boxes which have a title that is also a link need changing too. I found the code for that:
a.forumlink, a.forumlink:visited {color: #113355; text-decoration: none; }
but changing this means that the colour of other links get changed too, and the the colour of the link is now too similar to the background colour, and makes the text hard to read.
Can anyone suggest how to change the colour of the text in a header link (for an example, click on Home here in IP and scroll down to the bottom. See the text/links in 'Statistics' / 'Birthdays' / 'Shoutbox), without changing the colour of the links in forum titles?
|
#12 Wed 30 May, 2007 20:55 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Text Colour
You need just to create an extra class and use it.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#13 Thu 31 May, 2007 18:09 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Text Colour
Can someone tell me what code to insert please, and would it need to go in the style_ice.css file? I need white for the text in the header-title link, and normal links to stay #113355 colour.
Thanks for the help so far folks.
|
#14 Thu 31 May, 2007 19:28 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|