How can I add some text to the right of the logo area? It might need to be in two lines so it doesn’t go over too far and into the menu. thank you
Hey gharding!
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;
}
Cheers!
Yigit
Yigit, thank you. How could I control the appearance of it with css, please? Let’s just say font size 14 and white text as a place to start and then I’ll figure out the rest.
gary
p.s. that didn’t work
Hi!
Actually, the code works but the text is hidden below the header. Use this on Quick CSS:
.logo, .logo a {
overflow: visible;
}
span.subtext {
position: absolute;
top: 0;
left: 220px;
display: block;
width: 150px;
font-size: 15px;
}
Adjust the css values if needed.
Cheers!
Ismael
Hi!
You can use HTML instead of “Company Name”. Please make sure to add single quotes as following
add_filter('avf_logo_subtext', 'kriesi_logo_addition');
function kriesi_logo_addition($sub) {
$sub .= "Company <p class='secondary-logo-p'>Name</p>";
return $sub;
}
Regards,
Yigit
@Yigit but in adds text within ‘<a’ element.
How to set anything after logo element (but still in class=”content” div?
Adding action to ava_main_header or does another div not inside the content.
Hi!
Try with the avf_logo_final_output
filter:
https://kriesi.at/support/topic/add-image-to-header-2/
Cheers!
Josue
Thanks Josue,
It would be great to have a list of AVIA hooks for the future anyway ;)
HAve a nice day!