Recent Topics

1 Apr 09, 2007 15:42    

My b2evolution Version: 1.9.x

In the Blog settings, there is an option:
Allow customized blog CSS file
A CSS file in the blog media directory will override the default skin stylesheet.

But I can't find any information about how this works or how to use it.

A cursory grep through the source code suggests that the "blog_allowblogcss" row is never used anywhere, apart from setting and reading it in the back office. :?:

Thanks for any assistance!

2 Apr 09, 2007 16:03

Upload a style sheet called "style.css" to the media folder for any given blog and that style sheet will take precedence over the skin's style sheet.

3 Apr 09, 2007 16:04

If you upload style.css to the blogs media directory then it'll automaticaly be included in the skin ;)

inc/model/collections/_blog.class.php :

			/* Add the html for a blog-specified stylesheet
			 * All stylesheets will be included if the blog settings allow it
			 * and the file "style.css" exists. CSS rules say that the latter style sheets can
			 * override earlier stylesheets.
			 */
			case 'blog_css':
				if( $this->allowblogcss
					&& file_exists( $this->get_media_dir(false).'style.css' ) )
				{
					return '<link rel="stylesheet" href="'.$this->get_media_url().'style.css" type="text/css" />';
				}

¥

*edit*
lol *pours drinks* ;)

4 Apr 09, 2007 16:06

Awesome, I see now. Thanks!


Form is loading...