/include/classes/Css.php
/include/classes/Css.php
CasselmanCanada.com (free access)
I just set it to the black as the default, but it won't take. The site whenever I refresh it keeps reverting back to the lighter background. The person I had from the helpdesk didn't remove the "default" from the file. Both should be set to "black" and "black".
Here is the coding:
public static function validate($css)
{
$valid_css = array(
'black', 'black'
);
Last edited by nowordneeded; 08-15-2015 at 06:48 AM.
I came back here to say it was not working in v2.9 but it looks like you got help to fix it. I will try your code. Thanks.
CasselmanCanada.com (free access)
Hi,
To set black theme as default, do the following.
Open include/classes/Css.php file and find
replace this line withPHP Code:
$css = 'default';
Save file.PHP Code:
$css = 'black';
Re-load your site after clearing the browser's cache and cookie.
this not work in 3.1, how can i set the theme with black style in 3.1?
In the 2.9 theme, the code is in this directory:
/include/classes/css.php
I would think it would be the same for 3.0 and above. Find the code that starts on line 22 in a code editor. It should look like this:
Change the 'default', 'black' to:Code:public static function validate($css) { $valid_css = array( 'default', 'black' );
Both have to be set to black for you to use the black theme exclusively. If you don't change it to that, it'll keep reverting to the default, which is the white theme.Code:public static function validate($css) { $valid_css = array( 'black', 'black' );
Bookmarks