Add a CSS class based on categroy id to archive pages

the link you gave has category class “category-26”, so therefore to add custom styling to this specific page you just have to define class .category-26 before any of your custom style, example of adding custom css to specific your category page : .category-26 article { background: #9999; } You can find specific category key with … Read more

Header image automatically changes depending on season

Change filter call add_filter(‘masthead’,’seasonal_site_header’, 10, 2); function seasonal_site_header ($classes=””) { $hemisphere=”northern”; $m = date(‘m’); $northern=array( ‘summer’ => array(6, 7, 8), ‘fall’ => array(9, 10, 11), ‘winter’ => array(12, 1, 2), ‘spring’ => array(3, 4, 5) ); foreach($$hemisphere as $key=>$val) { if(in_array($m, $val)) { $classes[] = $key; return $classes; } } return $classes; } Change css … Read more