[eluser]Unknown[/eluser]
Hi theprodigy,
So happy to find this post! ...to which I'm trying hard to connect...
Could you be more specific about what you suggest above?
Where do you exactly enter the "class Css extends Controller" you suggest in the first place? I guess this is the php part. In a blog theme for instance, would that typically be in the function.php?
It's not clear to me what value exactly this allows to extract and how the value can then be used as a variable.
I'm running severals blogs in the WordPress multi-sites mode. The issue I have with the theme I use is that it loads the background image from the main image directory of the theme, not from the sub-blog specific image directory, which means I currently can only load the same background for all my blogs.
The background image is defined in the main css file of the theme. I would therefore like to change the ccs file to include the variable into the path to the background image so as each sub-blog can have its own individual background.
Currently, the ccs part reads:
body {
font: 11px Verdana;
color: #FFFFFF;
background: #151515 url('../images/001/body_BG.jpg') top left no-repeat;
}
The sub_blog_ID should be the variable part of the filename or subdirectory.
1) What do I have to write in which php file to extract a sub_blog_ID?
2) Then how to I exactly write the ccs part to include the sub_blog_ID variable?
Thanks in advance for your help!
Trevor