Quantcast
Channel: Support – Jetpack
Viewing all articles
Browse latest Browse all 373

Social Menu

$
0
0

Social Menu allows site owners to create a new menu location, used to display links to Social Media Profiles.

Social Menu

Adding Support

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!


Viewing all articles
Browse latest Browse all 373

Trending Articles