first off, i’m using Adaptive Theme so maybe this won’t make sense using a different theme. but here i want to add a class to
<header id=“main-content-header” class="someclasses">
which is found in page.tpl but based on node id. this would have to be done in mysubtheme_preprocess_page(). i have part of the code working.
$variables['content_header_attributes_array']['class'][] = 'about'
but don’t know how to ascertain the node id that is contained on the page. is it possible? my pseudo code would read something like
if (nodeId == 1){
$variables['content_header_attributes_array']['class'][] = 'about'
}
by the way, i find myself needing to do this constantly so i can style these headers differently, at least for this project i do. maybe there’s a better way to accomplish,..?
i can use conditional stylesheets but then there’s the issue of adaptive design and you’d have to put media query’s in these conditional stylesheets. don’t know if that’s such a good idea or not.