Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Sirius B on July 04, 2016, 12:36:47 PM

Title: how to change background color ?
Post by: Sirius B on July 04, 2016, 12:36:47 PM
hello everyone.
i am just new to smf and running smf 2.0.11. i want to change the background color of additional smileys page. i am adding a screen shot of that so that you can understand better what i am trying to say.
thanks.
Title: Re: how to change background color ?
Post by: Illori on July 04, 2016, 01:58:47 PM
which background do you want changed? the main background or the inset background. in your screenshot they are both the same color, which is defined by the theme you are using.
Title: Re: how to change background color ?
Post by: Sirius B on July 04, 2016, 02:03:55 PM
i want to change the main background to white, so that the smileys can be seen properly.
Title: Re: how to change background color ?
Post by: Illori on July 04, 2016, 02:17:43 PM
in your themes [or default themes] folder find GenericControls.template.php

Code (find) Select
<body id="help_popup">
<div class="padding windowbg">
<div class="cat_bar">
<h3 class="catbg">
' . $txt['more_smileys_pick'] . '
</h3>
</div>
<div class="padding">
%smileyRows%
</div>


Code (replace) Select
<body id="help_popup">
<div class="padding windowbg">
<div class="cat_bar">
<h3 class="catbg">
' . $txt['more_smileys_pick'] . '
</h3>
</div>
<div class="padding" style="background: #fff;">
%smileyRows%
</div>
Title: Re: how to change background color ?
Post by: Sirius B on July 04, 2016, 02:31:30 PM
can't find anything like that.
Title: Re: how to change background color ?
Post by: Illori on July 04, 2016, 03:04:20 PM
as i said or the default theme, so in your case you need to modify the file in the default theme.
Title: Re: how to change background color ?
Post by: Sirius B on July 04, 2016, 03:19:53 PM
done. but it's not taking effect. i tried copying that template to the current theme too. but, it's not taking effect.
Title: Re: how to change background color ?
Post by: Illori on July 04, 2016, 04:35:31 PM
you need to clear your browsers cache for it to have effect.
Title: Re: how to change background color ?
Post by: Sirius B on July 04, 2016, 04:55:30 PM
i did. but, it's still not working. it has some kind of wallpaper on background i think.
Title: Re: how to change background color ?
Post by: Illori on July 04, 2016, 05:01:31 PM
that did the trick when i tested it... at this point i would say this is something that you should contact the theme author about.