-
AuthorPosts
-
May 25, 2018 at 9:08 am #961978
Hi all,
I try to solve the follwing issue:
The logo (left sidebar) will not be visibel accuratly on desktop and on Mobile the logo will be squezzed.
Could you help?
Thanks MartinIN CSS I added:
#top .logo img {
width: 150px;
height: 150px;
}but this doesn’t help really
- This topic was modified 6 years, 7 months ago by Tremblau.
May 27, 2018 at 2:45 pm #962751Hey Martin,
Best regards,
VictoriaMay 27, 2018 at 5:48 pm #962843This reply has been marked as private.May 28, 2018 at 3:26 pm #963303This reply has been marked as private.May 28, 2018 at 6:48 pm #963402Hi Martin,
Try adding this php code at the bottom of your functions.php:
function av_change_logo($logo, $use_image, $headline_type, $sub, $alt, $link){ $use_image = $use_image; $headline_type = $headline_type; $sub = $sub; $alt = get_bloginfo('name'); $link = home_url('/'); if($sub) $sub = "<span class='subtext'>$sub</span>"; $dimension = "height='300' width='300'"; if($logo = avia_get_option('logo')) { $logo = $logo; if(is_numeric($logo)){ $logo = wp_get_attachment_image_src($logo, 'full'); $logo = $logo[0]; } $logo = "<img {$dimension} src='{$logo}' alt='{$alt}' />"; $logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>"; } else { $logo = get_bloginfo('name'); if($use_image) $logo = "<img {$dimension} src='{$use_image}' alt='{$alt}' title='{$logo}'/>"; $logo = "<$headline_type class='logo bg-logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>"; } return $logo; } add_filter('avf_logo_final_output', 'av_change_logo', 100, 6);
Hope it helps :)
Best regards,
NikkoMay 28, 2018 at 7:25 pm #963407This reply has been marked as private.May 28, 2018 at 7:30 pm #963410This reply has been marked as private.May 29, 2018 at 5:41 am #963504Hi Martin,
Glad that it worked properly :)
A normal user should be able to find it in Appearance > Editor or via ftp but they need also to check for our documentation to be more informed on these things.
As for the functions.php to be overwritten on the next update, you need to use a child theme and place it on the child theme’s functions.php so it will be retained even during theme update, for more information on it please check our documentation: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#why-child-theme
Hope this helps :)Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.