Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Created March 15, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eri-trabiccolo/5d87ab50616aa8d11b97 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/5d87ab50616aa8d11b97 to your computer and use it in GitHub Desktop.
add some text above colophon socials
add_filter('tc_colophon_left_block', 'add_html_above_socials');
function add_html_above_socials( $_html ){
$my_html = sprintf('<span class="my_social_title">%s</span>',
__('Follow us', 'customizr-child')
);
return str_replace( '<span', $my_html.'</span', $_html);
}
/* add this to your css, of course without comments :D
* and style it the way you want (display: block is the important part ;))
*
* .colophon .my_social_title { display:block; color: purple;}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment