2012 Theme

Add Additional Menus to Child Theme

TwentyTwelve supports one menu and TwentyFourteen supports two but more can be added. These instructions apply to TwentyTwelve but can be adapted to TwentyFourteen. Child theme files: functions.php header.php js/navigation.js functions.php De-queue the original navigation.js script and queue the one in the child theme. // de-queue navigation js add_action(‘wp_print_scripts’,’tto_dequeue_navigation’); function tto_dequeue_navigation() { wp_dequeue_script( ‘twentytwelve-navigation’ );…

Read More

Override ie.css in TwentyTwelve for Child Theme

TwentyTwelve loads ie.css from functions.php so to override it in your child theme use the following in your themes functions.php // remove ie css from twentytwelve theme function mytheme_dequeue_styles() { wp_dequeue_style( ‘twentytwelve-ie’ ); } add_action( ‘wp_enqueue_scripts’, ‘mytheme_dequeue_styles’, 11 ); //add new from child theme wp_enqueue_style( ‘mytheme-ie’, get_stylesheet_directory_uri() . ‘/css/ie.css’, array( ‘twentytwelve-style’ ), ‘1.0’ ); $wp_styles->add_data(…

Read More