Hey,
I’ve been searching the forum and documentation for a good way of doing this, but with no luck. I don’t want a logo in form of an image to be displayed in the header, I just want to have a tagline in text. What is the best way of going about?
Best regards
/Cecilia
Hey ceciliahermansson!
Please add following code to Functions.php file in Appearance > Editor and edit as needed
add_filter('avf_logo_subtext', 'kriesi_logo_addition');
function kriesi_logo_addition($sub) {
$sub .= "Company Name";
return $sub;
}
Cheers!
Yigit
So I’ve added the code to functions.php. I now have a span with the class subtext, but when I try styling it, nothing happens. I also don’t want an image logo to be displayed.
Here’s how I try to style the text:
span.subtext {
color: #000;
background-color: #ff0000;
border: solid 1px red;
}
Please see my website to understand :)
Cheers!
Hey!
Please add following code to Quick CSS as well
.logo img {
display: none;
}
Best regards,
Yigit
Hehe, quite obvious. Thanks!
[fixed it]
Small issue now. When I target the span.subtext to style it, I can’t change font. But I know I target the right class because I can change the font size.
Also, I need to get rid of the green underscore in hover state, but just for span.subtext, not for the main menu.
<– Still need help with this
BIG THANKS!
Hejsan Cecilia!
Please use following code in Quick CSS
.logo a {
text-decoration: none!important;
}
span.subtext {
font-family: georgia !important;
}
Cheers!
Yigit
All solved. Cheers! Tacktack!