Last active
September 1, 2018 07:36
-
-
Save eri-trabiccolo/a91322d0b3a535293a40 to your computer and use it in GitHub Desktop.
Tagline below the logo
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
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