How to change the colour of this particular area? *with an additional problem*

Started by SVR2010, September 08, 2009, 12:06:41 AM

Previous topic - Next topic

SVR2010

I'm not sure if I'm posting this in the correct area, since I'm new. But I have one simple question (I suppose it's simple), where exactly in style.css would I edit the colour of this particular area:



Would it even be in style.css?

I'm sure I edited it before and changed it to black, but it mysteriously changed to the grey colour.

This theme is the default SMF theme.

Thanks :)

shadow82x

Welcome to SMF! :)

It should be the .windowbg class in your stylesheet.
Colin B
Former Spammer, Customize, & Support Team Member

SVR2010

Odd, the background colour for all .windowbg are set to 000000 and yet the colour is still a grey-ish white colour.


tyty1234

Try the icon class instead. I believe this is found in either index.css or forum.css within the css directory of the theme you are using.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010

Would it still be called the same thing? .windowbg? or something completely different. I haven't really seen very many background colour codes I could change within index.css and forum.css.

tyty1234

Look for .icon. That's actually what I meant by the "icon class" ;)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010

Oh! lmao, wow I'm new, sorry.

Weird though, I went through both and couldn't find any .icon anywhere.

tyty1234

Hm, I was able to find it in forum.css, but it has nothing to do with the background color. It really is strange that all your windowbgs are the same color and it doesn't do anything. :-\
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010

#8
Could it be a mod I installed?

1.     Space Between Posts     2.0     [ Uninstall ]
2.    PM to New Members    1.2    [ Uninstall ]
3.    eNinja - News Promoter    0.9.0    [ Uninstall ]
4.    New Topic Button    1.0    [ Uninstall ]
5.    MessagePreviewOnHover    1.7    [ Uninstall ]
6.    Karma Buttons    1.1    [ Uninstall ]
7.    Increase Number of Visitors (cheat)    1.0    [ Uninstall ]
8.    Hide SMF Version    1.0.4    [ Uninstall ]
9.    Global Headers Footers    2.0    [ Uninstall ]
10.    Force Topic Read On Login Mod    2.1    [ Uninstall ]
11.    Downloads System    1.2.6    [ Uninstall ]
12.    Display Signatures Only Once Per Page    1.0.2    [ Uninstall ]
13.    Date_Registerd on post    1.0    [ Uninstall ]
14.    Custom_Greeting_Depending_on_Time    1.1    [ Uninstall ]
15.    Custom Copyright    1.1    [ Uninstall ]
16.    Contact Page    2.0    [ Uninstall ]
17.    Category View    2.1    [ Uninstall ]
18.    Caps_Lock_Detection_on_Login    1.1    [ Uninstall ]
19.    Ban List    2.0    [ Uninstall ]
20.    Admin Ban Button in Post    1.1    [ Uninstall ]
21.    Activity_Bar    1.0.1.1    [ Uninstall ]
22.    Active Members In Topic    1.8    [ Uninstall ]
23.    Countdown_BBCode    1.0    [ Uninstall ]

Also, sorry if this a wrong thing to do, but I don't really feel like making two seperate topics, but how do I change the colour of the text:


the text, except the ">"'s all blend in with the background and cannot be seen. I highlighted the text to show you what text I meant.

Thanks :)

tyty1234

I doubt that any of these mods are causing the color of the board icon area.
As for the color of the text in the linktree, you can change it in index.css.


/* the linktree */
ul#linktree
{
clear: both;
list-style: none;
margin: 1.5em 0.5em 0.5em 0.5em;
padding: 0;
}
ul#linktree li
{
margin: 0;
padding: 0;
display: inline;
font-size: 0.8em;
}
ul#linktree li a
{
color: black;
text-decoration: none;
}
ul#linktree li a:hover
{
color: #16b7c5;
}
ul#linktree li span
{
font-weight: bold;
}
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010

Thanks very much! You helped me fix the linktree colour. Now that other problem apparently is a stumper.

tyty1234

I think it's time we see your site. Can you please post a link to it?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010


tyty1234

that's odd....it looks like your BoardIndex.template.php is using an SMF 1.1.x copy. Can you attach your BoardIndex.template.php file?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.


tyty1234

Make these edits to the BoardIndex.template.php file

Code (Find) Select

echo '<td', (!empty($board['children']) && $daLayout != 2 ? ' rowspan="2"' : ''), ' class="fillCells" style="height: 100%; background-color: #ECEDF3; margin-left: 2px; padding: 2px 2px 0px 2px;" align="center" valign="middle">


Code (Replace With) Select

echo '<td', (!empty($board['children']) && $daLayout != 2 ? ' rowspan="2"' : ''), ' class="windowbg icon fillCells" style="height: 100%; background-color: #ECEDF3; margin-left: 2px; padding: 2px 2px 0px 2px;" align="center" valign="middle">
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

SVR2010


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

greyknight17

Is this issue resolved now?

If you just want to change the background color for that cell, open up /Themes/default/BoardIndex.template.php:

Code (Search for) Select
<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon">

Code (Replace with) Select
<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg4 icon">

Code (Search for) Select
.windowbg3
{
color: #000000;
background-color: #E0E1E8;
}


Code (Add after) Select
.windowbg4
{
color: #000000;
background-color: #000000;
}


Change the background color to the color you want. Right now, it's set to black (#000000).

Advertisement: