Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
change colours child theme
Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 1, 2013 - 4:34 pm

Hi,

zo i made my own theme. 

Now i would like to change 3 colours. In the atached screenshot you see wich 3 colour i would like to change.

Thankschange-colour.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 2, 2013 - 11:54 am

the best way to do this kind of modifications is using firefox and firebug... it lets you examine each element and even try a css change to see if you like it...

we do offer a complete theme customization service if you like - see the sidebar...

# is controlled by the styling on

.spGroupViewSection

#2 is controlled by the styling on

#spMainContainer

#3 is controlled by the styling on

#spMainContainer a.spButton

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 2, 2013 - 1:26 pm

Oke zo if i correctly understand you, you manchen 3 files

 

1. spGroupViewSection

2 spMainContainer

3 spMainContainer a.spButton

 

Can i just change the hexmatic colour code in the above files ? 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 2, 2013 - 2:14 pm

3 files??? no, I mentioned 3 css directives...

It appears you are using default theme with the gin and tonic overlay, correct?  is this your own theme (a copy of ours) or ours?  you will want to make your own theme or else you will lose changes if you upgrade the theme...  see:  http://codex.simple-press.com/.....g-a-theme/

then in the main theme file (ie default.php) you will look for those directives...  do not lose the # or . as they specify id or class...  when you find them, since you are using an overlay, it will probably have an embedded php statement...  you will then need to go to the gin-and-tonic.php file and find that variable and change it there... for example on the first one...

default.php line78 is the 2nd one...

#spMainContainer {
    color: <?php echo($mainBackGroundColor); ?>;
    background: <?php echo($mainBackGround); ?>;
    border: <?php echo($mainBackGroundBorder); ?>;
    font-family: <?php echo($mainFontFamily); ?>;
    font-size: <?php echo($mainFontSize); ?>;
    line-height: <?php echo($mainLineHeight); ?>;
    <?php echo($smallRadius); ?>
    padding: 1px;
}

so note the  $mainBackGround variable...  going to gin-and-tonic.php line 15

$mainBackGroundBase        = '#f6f8f9';
$mainBackGroundFrom        = '#f6f8f9';
$mainBackGroundTo        = '#f6f8f9';
$mainBackGroundBorder    = '1px solid #d5d5d5';
$mainBackGroundColor    = '#444444';
$mainBackGroundHover    = '1px solid #d5d5d5';
$mainBackGroundGradient    = "-moz-linear-gradient(100% 100% 90deg, $mainBackGroundTo, $mainBackGroundFrom); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from($mainBackGroundFrom), to($mainBackGroundTo)); background: -ms-linear-gradient(top, $mainBackGroundFrom 0%,$mainBackGroundTo 100%); background: -o-linear-gradient(top,  $mainBackGroundFrom 0%,$mainBackGroundTo 100%); background: linear-gradient(top, $mainBackGroundFrom 0%,$mainBackGroundTo 100%); background-color: $mainBackGroundBase;";
$mainBackGroundSolid    = '#EDEDED';
$mainBackGroundImage    = 'url("images/image.gif")';
$mainBackGround            = $mainBackGroundSolid; # pick background from: $mainBackGroundSolid, $mainBackGroundImage or $mainBackGroundGradient
$mainFontSize            = '100%';
$mainLineHeight            = '1.2em';

and you following the variables, you will see you want to change $mainBackGroundSolid and the #EDEDED to another value you want...

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 2, 2013 - 3:15 pm

Oke cool thanks for the clear answhare. 

Will try it out tomorrow.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 2, 2013 - 3:38 pm

okay, let us know how you make out...

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 3:04 pm

Zo im using the gin an tonic overlay with a copie of your theme. 

If i corectly understand i can change the colours in : gin-and-tonic.php  ?

 

you manchen #spMainContainer ,  in the gin-and-tonic.php file i only find  : The overall SP forum container  and The overall container of forum lists.

Should i make the change in one of this css directives ore am i totaly wrong ? 

English is not my mature language zo i dont understand everything you said 3 post above. But we will get there.

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2013 - 6:43 pm

depends... the css directive may be being parsed with php and thus you will see a php variable loaded from the overlay file... so for consistency, you might want to change it in the overlay file where the php variable is set as I showed...

however, its your theme now (if you followed our suggestion to create your own theme vs editing one of ours) so you could simple replace the php parsing/loading of the variable in the overlay with a direct css directive (ie hex color)...

hope that helps...

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2013 - 4:53 pm

Yeah i think its clear nouw.

I did make a theme by following this tutorial : http://codex.simple-press.com/.....g-a-theme/

Therefore i can change the hex color in the overlay of the theme i created. 

Is there a way to know wich css directives is the orginal from where the variable is based on ?   ore is this not importend and should i just start changing some colours and see wich i like to change ? 

Thanks

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2013 - 5:18 pm

all the colors are defined in the overlay (ie gin and tonic)... but it is a bit cryptic... so I would just start changing in the base theme file (.php) until you are happy since you wont be distributing the theme...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625