Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.