Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 Martin

    IN 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.
    #962751

    Hey Martin,

    Best regards,
    Victoria

    #962843
    This reply has been marked as private.
    #963303
    This reply has been marked as private.
    #963402

    Hi 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,
    Nikko

    #963407
    This reply has been marked as private.
    #963410
    This reply has been marked as private.
    #963504

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.