Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #714024

    Hallo, was muss eingestellt werden damit bei Mobilgeräten das Logo kleiner wird.

    #714047

    Hey Reinhard,

    nutze diesen Code:

    @media only screen and (max-width: 767px) {
    #header_main .container .logo a img {
    height: 60px !important;
    }}

    Gruß,
    Andy

    #714111

    Hallo Andi, danke.

    Habe ich auch die Möglichkeit ein anderes Logo für die Mobilvariante zu verwenden.

    Danke Reinhard

    #714113

    Hey!

    Please refer to this post – http://kriesi.at/documentation/enfold/change-logo-on-mobile/

    Regards,
    Yigit

    #714118

    Hallo gibt es auch die Möglich das es ab einer bestimmten Breite geht. Nicht nur auf Mobil.
    Kann ich das irgendwie für Quick CSS lösen. Sonst bei einem Update geht das ja verloren, oder?

    #714634

    Hey!

    Please replace the code with this.

    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		var ww   = $(window).innerWidth();
    
    		if(ww >= 989) return;
    
    		$('#top .logo img').attr('src', 'MOBILE LOGO HERE');
    	}
    
    	$(window).load(function() {
    		a();
    	});
    })(jQuery);
    </script>
    <?php
    }

    It will change the logo on screens smaller than 989px.

    Cheers!
    Ismael

    #714940

    Hallo, Code im Quick CSS integriert. Funktioniert leider nicht.

    #714942

    Hallo!

    Füge folgenden Code in deine functions.php ein (nicht Quick CSS):

    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		var ww   = $(window).innerWidth();
    
    		if(ww >= 989) return;
    
    		$('#top .logo img').attr('src', 'LOGO AUF MOBIL HIER');
    	}
    
    	$(window).load(function() {
    		a();
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Yigit

    #714943

    wird die function.php oder dieser Code bei einem Update überschrieben?

    #714944

    Hallo!

    Ja, die function.php und dieser Code bei einem Update überschrieben. Bitte, zu verwenden child theme – http://kriesi.at/documentation/enfold/updating-your-theme-files/

    LG,
    Yigit

    #714945

    Hallo, gibt es keine andere Möglichkeit über die Quick CSS das zu steuern.

    Ab einer bestimmten Browserbreite möchte ich ein anderes Logo.

    #714946

    Hallo!

    Füge folgenden Code ins Quick CSS Feld ein:

    @media only screen and (max-width: 989px) { 
    .logo img, .responsive .logo img { opacity: 0 !important; }
    .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png)!important; background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; }
    }

    LG!
    Yigit

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