Last active
February 21, 2016 19:05
-
-
Save 2ndkauboy/d79d311c09d1cc9a83be to your computer and use it in GitHub Desktop.
TwentyFifteen Child-Theme with an additional Footer Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function twentyfifteen_parent_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'twentyfifteen_parent_enqueue_styles' ); | |
function twentyfifteen_footer_menu_setup() { | |
register_nav_menus( array( | |
'footer' => __( 'Footer Menu', 'twentysixteen-footer-menu' ), | |
) ); | |
} | |
add_action( 'after_setup_theme', 'twentyfifteen_footer_menu_setup' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Theme Name: TwentyFifteen with Footer Menu | |
Template: twentyfifteen | |
*/ | |
.nav-menu-footer { | |
margin: 0; | |
} | |
.nav-menu-footer li { | |
display: inline-block; | |
list-style-type: none; | |
} | |
.nav-menu-footer li:after { | |
content: " | "; | |
} | |
.nav-menu-footer li:last-child:after { | |
content: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment