Tagged: replace Logo
-
AuthorPosts
-
July 31, 2024 at 3:36 pm #1463438
Hello there :)
I would like to use (HTML)-Text at the header-logo instead of an image.
Is it possible to replace the image so that I can I can use text?Thanks :)
July 31, 2024 at 5:16 pm #1463448you can do that by subtext option – this inserts f.e. the bloginfo name and description as text.
– but you do not need to insert these dynamic texts – you can insert simple html too
( this inside child-theme functions.php)add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<h1 class='logo-title'>"; $sub .= get_bloginfo( 'name', 'display' ); $sub .= "</h1>"; $sub .= "<h2 class='logo-title logo-subtitle'>"; $sub .= get_bloginfo( 'description', 'display' ); $sub .= "</h2>"; return $sub; }then you can set logo img to display none – and style the text via quick css too ( positioning; font-size; colors etc. )
btw: : you can see that here on top with logo and text. this “kriesi.at” and “Premium Themes” is placed that way ( but only in strong tags)PS: you can insert this way dynamically the page title as second text by replacing in the code above
$sub .= get_the_title();f.e.:
#top .logo img { display: none } #top .logo, #top .logo a { overflow:visible } #top .logo-title { font-size:12px; color:#000; position:absolute; left:0px; top:-7px; white-space:nowrap } #top .logo-subtitle { color:#aaa; top:7px }August 1, 2024 at 10:15 am #1463503Great, thanks a lot! :)
August 1, 2024 at 12:07 pm #1463514Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Thanks @guenni007 for the great help :-)
Best regards,
RikardAugust 1, 2024 at 1:03 pm #1463522This reply has been marked as private.August 1, 2024 at 3:12 pm #1463527Hi,
Thanks for letting us know, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Replace Logo-image with text’ is closed to new replies.

