Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Last active February 21, 2016 19:05
Show Gist options
  • Save 2ndkauboy/d79d311c09d1cc9a83be to your computer and use it in GitHub Desktop.
Save 2ndkauboy/d79d311c09d1cc9a83be to your computer and use it in GitHub Desktop.
TwentyFifteen Child-Theme with an additional Footer Menu
<?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' );
/**
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