Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Last active September 1, 2018 07:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eri-trabiccolo/a91322d0b3a535293a40 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/a91322d0b3a535293a40 to your computer and use it in GitHub Desktop.
Tagline below the logo
add_action('wp_head', 'move_tagline_below_logo');
function move_tagline_below_logo(){
if ( ! method_exists('TC_header_main', 'tc_tagline_display') )
return;
remove_action('__navbar', array(TC_header_main::$instance, 'tc_tagline_display'), is_rtl() ? 10 : 20 );
add_action('__after_logo', array(TC_header_main::$instance, 'tc_tagline_display') );
add_filter('tc_tagline_class', 'span7_to_12');
function span7_to_12( $_class){
return str_replace('span7', 'span12', $_class);
}
}
/* CSS part: add the following to your custom css
.inside.site-description { margin-left: 0 }
@media (max-width: 979px) {
.inside.site-description {
display: none;
}
}
end of CSS part*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment