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!
Text Colour
Subject: Re: Text Colour
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.
tc1967uk wrote: [View Post]
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.
Subject: 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?
Subject: Re: Text Colour
tc1967uk wrote: [View Post]
- 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.
Subject: 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?
Subject: 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?
Subject: 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
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)
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
Code: [Download] [Hide] [Select]
.name {
color: #FFFFFF;
}
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)
Subject: 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?
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?
Subject: 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:
Choose the way you think is the best for you.
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:
Choose the way you think is the best for you.
Subject: 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 :oops:
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?
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?
Subject: 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. :mryellow:
Thanks for the help so far folks. :mryellow:
Subject: Re: Text Colour
Please don't take this as an offence, but I think you should first learn how CSS works and how to integrate them in HTML, otherwise you won't ever be able to solve this.
Try this:
http://www.w3schools.com/css/default.asp
Try this:
http://www.w3schools.com/css/default.asp
Page 1 of 1
You cannot post new topicsYou 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
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.4539s (PHP: 5% SQL: 95%)
SQL queries: 29 - Debug Off - GZIP Enabled