I am trying to get my header to contain a phone number to the right of the logo. I would like the number to act much like the “Kresi.at Premium Themes” to the right of the logo on this page https://kriesi.at/support/forum/enfold/ without the fade out.
Hey sgehrke!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_logo_subtext', 'kriesi_logo_addition');
function kriesi_logo_addition($sub) {
$sub .= "Company Name";
return $sub;
}
and adjust it as needed
Cheers!
Yigit
Thanks Yigit,
I added that code to my child themes function.php…
add_filter('avf_logo_subtext', 'kriesi_logo_addition');
function kriesi_logo_addition($sub) {
$sub .= "<strong class='logo-title'>Company Name</strong>";
return $sub;
}
Then I had to add some CSS to put it in the proper place.
.subtext {
float:left;
position: relative;
}
.logo img {
float:left;
}
.logo, .logo a {
overflow: visible;
}
.logo-title{
font-size: 20px;
color: #000;
position: absolute;
left:7px;
top:5px;
white-space: nowrap;
}
Thanks for your help.
Hi!
You are welcome, glad we could help :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit