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
body .cookbook-instagram { | |
background: #333; | |
color: #fff; | |
margin: -20px auto 0; | |
padding: 20px; | |
} | |
body .cookbook-instagram h4 { | |
color: #fff; | |
margin: 3px 0 5px; |
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
<?php | |
//* Do NOT include the opening php tag | |
add_action( 'cookbook_recipe_after', 'cookbook_recipe_instagram', 10 ); | |
/** | |
* Display the Instagram Information. | |
*/ | |
function cookbook_recipe_instagram() { | |
echo '<div ' . cookbook_get_attr( $recipe, 'instagram' ) . '>'; | |
echo '<i class="fa fa-instagram fa-5x fa-pull-left"></i>'; |