Theme developers can add support for Social Menu by following these two simple steps.
Step 1. Declare support in a function hooked to after_setup_theme
.
add_theme_support( 'jetpack-social-menu' );
Step 2. Use a template tag to output the menu where you would like to show it. Be sure to include the function_exists()
check to avoid fatal errors if Jetpack isn’t activated.
<?php if ( function_exists( 'jetpack_social_menu' ) ) jetpack_social_menu(); ?>
Styling
Once you’ve created a menu, Jetpack will automatically enqueue a basic stylesheet to style each one of the menu items, thanks to Genericons. You don’t have to do anything else!