Hi, I would like to add the title next to the logo in the header.
I tried using this code:
/* Add Title To Logo */
add_filter('avf_logo_subtext', 'kriesi_logo_addition');
function kriesi_logo_addition($sub) {
$sub .= get_bloginfo( 'name', 'display' );
return $sub;
}
The subtext is added but I don’t see it.
When I put the logo itself on display: none then I can see the text, but I can’t seem to make the title show next to the logo at the same time.
I tried various styling such as display positions, z-index, etc.. but no results.
Please advice.
Hey Ewoud!
Can you send us a link to your page so we can take a look? You can set your reply as private if you wish.
Regards,
Elliott
It is a client page.. here is the link
Hey!
Add this to your custom CSS.
.subtext {
color: white;
left: 100px;
position: absolute;
top: 0;
width: 100px;
z-index: 999;
}
.logo, .logo a { overflow: visible !important; }
Cheers!
Elliott
I adjusted your code to the following so it still works when the header shrinks when scrolling:
/* Show Title + Logo */
.logo, .logo a { overflow: visible !important; }
.logo .subtext { color: #fff; float: left; margin-left: 20px; width: 250px; z-index: 999; font-size: 40px; }
.logo img { float: left; }
Thank you,