Last active
June 8, 2017 14:13
-
-
Save ScarletPonytail/4455074ba68170243fd651d1ad5dfa43 to your computer and use it in GitHub Desktop.
Wordpress - Create Widget in functions.php and adding it to the theme
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
// Add Footer Menu Widget | |
function footer_widgets_init() { | |
register_sidebar( array( | |
'name' => 'Footer Menu', | |
'before_widget' => '<div class="footer-menu">', | |
'after_widget' => '</div>', | |
'before_title' => '<h3>', | |
'after_title' => '</h3>', | |
) ); | |
} | |
add_action( 'widgets_init', 'footer_widgets_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment