WordPress menu: How to make www.link.com/#name never contain current_page_item class?

a bit hacky, but it works: add_filter(‘nav_menu_css_class’, ‘remove_some_menu_classes’, 420 ,3); function remove_some_menu_classes($classes, $item, $args){ if(strpos($item->url, ‘#order’) !== false) // in the 2nd array put the classes you want removed return array_diff($classes, array(‘current_page_item’, ‘current-menu-item’)); return $classes; }

New wp menu menu styling

Are you using CSS3? You could use: ul#navmenuid:first-child { border-left: 1px; } Or you could use (any LI that immediately follows an LI): ul#navmenuid li { border-left: 1px; border-right: 1px; } ul#navmenuid li + li { border-left: 0; } Or you could use (any LI that follow an LI, even if not immediately): ul#navmenuid li … Read more

CSS not being applied

A plugin conflicted witt eh last 30 lines or so of my css file. No idea what exactly it did to cause this, but disabled the plugin and everything is solved.

Using theme options to change a border-radius value

Use standard echo or printf with additional parameters. e.g. if(isset($option[‘borderradius’]) && (!empty($option[‘borderradius’]))) { $borderradius=”.post { “; $borderradius .= ‘border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘-webkit-border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘-moz-border-radius: ‘ . $option[‘borderradius’] . ‘px; ‘; $borderradius .= ‘}’; echo $borderradius; } if(isset($option[‘borderradius’]) && (!empty($option[‘borderradius’]))) { printf(‘.post { … Read more

Styling Admin comments in WP 3.1.3

Why not use: if ( user_can( $comment->user_id, ‘administrator’ ) ) { // current comment is from an administrator; // do something } As for putting the admin comments at the top of the comment list, you would have to modify the comment query itself.