Last active
August 29, 2015 14:14
-
-
Save bhubbard/ff4ab58fc2918945052a to your computer and use it in GitHub Desktop.
Use Jetpack to display Facebook and Twitter Profile urls with schema support. http://jetpack.me/support/social-links/ https://developers.google.com/webmasters/structured-data/customize/social-profiles
This file contains hidden or 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
| <span itemscope itemtype="http://schema.org/Organization"> | |
| <link itemprop="url" href="<?php echo get_home_url(); ?>"> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-facebook' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-facebook-official fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-facebook' ) ); ?>"></a> | |
| <?php } ?> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-twitter' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-twitter-square fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-twitter' ) ); ?>"></a> | |
| <?php } ?> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-linkedin' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-linkedin-square fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-linkedin' ) ); ?>"></a> | |
| <?php } ?> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-google_plus' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-google-plus-square fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-google_plus' ) ); ?>"></a> | |
| <?php } ?> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-tumblr' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-tumblr-square fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-tumblr' ) ); ?>"></a> | |
| <?php } ?> | |
| <?php if ( !empty( get_theme_mod( 'jetpack-wporg' ) ) ) { ?> | |
| <a itemprop="sameAs" class="fa fa-wordpress fa-2x" href="<?php echo esc_url( get_theme_mod( 'jetpack-wporg' ) ); ?>"></a> | |
| <?php } ?> | |
| </span> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment