By Ledo2 on
It there any simple and good tutorial on how to create a custom theme with just right sidebar that when it is empty ( no block inside) it is not visible?
Garland uses these for example. But i didn't quite manage to do it right.
I must modify 3 files if i am correct. template.php, page.tpl.php, and style.css. (and of course theme:name.info file).
If i understand correctly in template.php there is a "function" that checkes if there is any contetn in sidebar and based on that it assignes .class name to sidebar . class?
Comments
So in theming area there is
So in theming area there is very little activity?
Strange.
Solved
I played arround a bit with abessive theme and i understand now how it works. Basic function in template.php dynamically sets the .class in divider based on that if sidebar is empty or not.
Cool!