Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy 2ndkauboy/footer.php
Last active Feb 21, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.