-
AuthorPosts
-
June 18, 2018 at 8:35 am #974090
I am trying to add text next to my logo, by following this link? https://kriesi.at/documentation/enfold/logo/#toggle-id-2-closed
I have add the code below to funtions.php
add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= get_bloginfo(‘name’);
return $sub;
}There are a few issues now:
1. The text is in normal font. Can I change to <h1>?\
2. When i scroll down, the words become two lines, and are both broken. Any way to solve that?Thanks.
June 18, 2018 at 8:38 am #974091Also I have tried keying in company name directly by using code:
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= '<h1>Company Name</h1>'; return $sub; }Since there are some Chinese characters, the code could not be saved properly.
June 18, 2018 at 9:00 am #974099I just integrate the word into the logo by photoshop, as a picture. The problem is solved. Thanks.
June 18, 2018 at 9:18 am #974102you can do it this way you mentioned above – but there has to be additional css to see the subtexts !
They are in the logo container – so it has to get the overflow: visible.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 .= "<span class='logo-title logo-subtitle'>"; $sub .= get_bloginfo( 'description', 'display' ); $sub .= "</span>"; return $sub; }with that method it is possible to get rid of these texts on scrolled header like here on kriesi board – see above
or you use a svg for that – than you can do some nice things to the path itself on hovering or scrolling:
https://webers-testseite.de/cynthia/June 18, 2018 at 1:31 pm #974239Hi tintinshop,
Glad you got it working for you! :)
@Guenni007 thank you for another solution.If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
