News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

how do i change the forum title text color?

Started by bassbass, December 18, 2008, 09:00:05 PM

Previous topic - Next topic

bassbass

I've searched for hours and couldn't find anything, i looked in the CSS file but no luck, i am sure its easy but what file and where?  i am using the default theme.  thanks.

sherpa サイバー侍

If you had looked on style.css then you most have found it.
themes/your themes/style.css

bassbass

thanks for the quick response, my problem is i can't find where in the CSS file...can you tell me where in the CSS file or what to look for?  Thanks.

sherpa サイバー侍

Sorry I misunderstood with your question
to change title text color please open your index.template.php and find
<span style="font-family: Verdana, sans-serif; font-size: 140%; "> (If it is default themes)

Link to your forum will be more easy to guide you

bassbass

thank you very very much Sherpa, it worked...

sherpa サイバー侍

any time :p
enjoy your new looks

please make the topic solved (find link right below)

Tyrsson

#6
Quote from: sherpa サイバー侍 on December 18, 2008, 09:32:21 PM
Sorry I misunderstood with your question
to change title text color please open your index.template.php and find
<span style="font-family: Verdana, sans-serif; font-size: 140%; "> (If it is default themes)

Link to your forum will be more easy to guide you
That will NOT change the color......

Look for this:

Note: This will be in the style.css

/* the forum name or logo */
h1
{
   padding: 0.6em 0 0.6em 0;
   margin: 0;
   font-family: Verdana, helvetica, sans-serif;
   font-size: 135%;
   color: #990000;     <----- This is the color
}

This is from 2.0 but it should be similar.
PM at your own risk, some I answer, if they are interesting, some I ignore.

sherpa サイバー侍

Quote from: Tyrsson on December 19, 2008, 12:08:20 AM
Quote from: sherpa サイバー侍 on December 18, 2008, 09:32:21 PM
Sorry I misunderstood with your question
to change title text color please open your index.template.php and find
<span style="font-family: Verdana, sans-serif; font-size: 140%; "> (If it is default themes)

Link to your forum will be more easy to guide you
That will NOT change the color......

Look for this:

Note: This will be in the style.css

/* the forum name or logo */
h1
{
   padding: 0.6em 0 0.6em 0;
   margin: 0;
   font-family: Verdana, helvetica, sans-serif;
   font-size: 135%;
   color: #990000;     <----- This is the color
}

This is from 2.0 but it should be similar.

I am 120% sure that will change the color
<span style="font-family: Verdana, sans-serif; font-size: 140%; "><font color="#ff6666">', $context['forum_name'], '</span>';

and those code you are feeding us is from your modify themes not defualt

Tyrsson

As far as I know the 'default theme' does not set the color in the index.template.php file..

I think that is the classic theme that uses that (I may be wrong)

In the default theme the forum name font color is set by the style.css in the 1.x version (I am pretty sure) and in the index.css in the 2.x version. And in the location I listed in the previous post (I just checked it to make sure before I replied).

Since the theme I am working on is based on the DEFAULT it will be in the same file and the same place.


Also, if you do this in the index.template.php file (which may work) of the default theme then you have changed the default which is a VERY bad idea. You should always make a copy of the default and change it. Also, when it is possible you should always change the colors in a theme in the css so as not to change the code in the template file unless it is a must. (Just seems to make sense to me for some reason).

But the point is that I was trying to make this fix as easy as possible with the least chances of causing problems in the future.

As long as its solved that's all I care about.
PM at your own risk, some I answer, if they are interesting, some I ignore.

bassbass

Quote from: Tyrsson on December 19, 2008, 12:08:20 AM
Quote from: sherpa サイバー侍 on December 18, 2008, 09:32:21 PM
Sorry I misunderstood with your question
to change title text color please open your index.template.php and find
<span style="font-family: Verdana, sans-serif; font-size: 140%; "> (If it is default themes)

Link to your forum will be more easy to guide you
That will NOT change the color......

Look for this:

Note: This will be in the style.css

/* the forum name or logo */
h1
{
   padding: 0.6em 0 0.6em 0;
   margin: 0;
   font-family: Verdana, helvetica, sans-serif;
   font-size: 135%;
   color: #990000;     <----- This is the color
}

This is from 2.0 but it should be similar.

Tyrsson, i like to change that from the CSS file, that would be appropriate, but i can't find the code you've noted above.  however Sherpa's method worked for now.  i am using 1.1.7 default theme.

Tyrsson

If you will attach your css file I will see if I can find it.... I am no longer using 1.1.7 but it shouldn't be too hard.

If it can be changed in the css that is where you should change it...

* Tyrsson guesses I am going to have to install a 1.1.7 forum lol
PM at your own risk, some I answer, if they are interesting, some I ignore.

sherpa サイバー侍

cannot you help him just by downloading smf 1.1.7 and telling him where to change?

Tyrsson

Yep,..... I am actually going to run a fresh install of the 1.x version tonight for this reason. I have several projects that I have been putting off for friends of mine and they are using the 1.x version so I guess its time to bite the bullet as they say lol.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

Ok here is where this is defined in the style.css in a 1.1.7 version (default theme). However, this will change the font color in some of the category names and the info center title.

Line# 255

.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
   background: url(images/catbg.jpg) #88A6C0 repeat-x;
   color: #FFFFFF;         <-------- This sets the color
   padding-left: 10px;
   padding-right: 10px;
}
PM at your own risk, some I answer, if they are interesting, some I ignore.

sherpa サイバー侍

that will change all the color of  .catbg , tr.catbg td , .catbg3 , tr.catbg3 td
and he only wanted to change the forum title not board name cat name so on

Tyrsson

Here is a screenshot as to what it will change.. It will also change some of the font colors in the admin area.

The new color I used is green which you can see.
PM at your own risk, some I answer, if they are interesting, some I ignore.

sherpa サイバー侍

Yeag it can be but he only wanted to change the forum title not others

Advertisement: