isTablet()){ $return .= '.cssmenu ul ul ul, .cssmenu > ul > li > ul {display: none;} '; } if($return) { echo ''; } } add_action( 'wp_enqueue_scripts', 'browser_styles' ); // adding the conditional wrapper around ie stylesheet // source: http://code.garyjones.co.uk/ie-conditional-style-sheets-wordpress/ function DS_ie_conditional( $tag, $handle ) { if ( 'DS-ie-only' == $handle ) $tag = '' . "\n"; return $tag; } /********************* THEME SUPPORT *********************/ // Adding WP 3+ Functions & Theme Support function DS_theme_support() { // wp thumbnails (sizes handled in functions.php) add_theme_support('post-thumbnails'); // default thumb size set_post_thumbnail_size(1000, 400, true); // wp custom background (thx to @bransonwerner for update) add_theme_support( 'custom-background', array( 'default-image' => '', // background image default 'default-color' => '', // background color default (dont add the #) 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ) ); // rss thingy add_theme_support('automatic-feed-links'); // registering wp3+ menus register_nav_menus( array( 'main-nav' => __( 'The Main Menu', THEME ), // main nav in header ) ); } /* end DS theme support */ /********************* MENUS & NAVIGATION *********************/ function ds_main_nav_fallback() { wp_page_menu( array( 'show_home' => true, 'menu_class' => 'cssmenu' // adding custom nav class )); } /********************* RELATED POSTS FUNCTION *********************/ function DS_related_posts() { echo '