Skip to content

Instantly share code, notes, and snippets.

@ellenmva
Created November 1, 2012 23:05
Show Gist options
  • Save ellenmva/3997343 to your computer and use it in GitHub Desktop.
Save ellenmva/3997343 to your computer and use it in GitHub Desktop.
Add Site Title to Display with Logo - Branding Section Pagelines
// 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
}
/* 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