Created
November 1, 2012 23:05
-
-
Save ellenmva/3997343 to your computer and use it in GitHub Desktop.
Add Site Title to Display with Logo - Branding Section Pagelines
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
// Adds Site Title to Display with Logo in Branding Section ------- // | |
add_action('pagelines_before_branding_icons', 'branding_site_title'); | |
function branding_site_title(){ | |
?> | |
<div class="title-container"> | |
<a class="home site-title" href="<?php echo get_option(‘home’); ?>/"> | |
<?php bloginfo(‘name’); ?></a></div> | |
<?php | |
} |
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
/* Styling to Display Both Logo and Site Title in Branding Section */ | |
#page { | |
.section-branding { | |
.mainlogo-link, .mainlogo-img { | |
display: inline-block; | |
max-width: 100%; | |
vertical-align: bottom; | |
} | |
} | |
.title-container { | |
display: inline-block; | |
} | |
h6.site-description { | |
display: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment