Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1303364

    Hi
    I am working on a new website, the client’s logo is quite detailed and needs to be large. They have requested that the logo sits in a circle half in the header and half in the first element, is there some quick CSS code for this? I have included a link in the private content to a website that has a similar set up for the logo in the header. Please note the website link is not the site I am building, just illustrates what I am after.
    I hope that all makes sense ;)
    Thanks in advance
    Peta

    #1303369

    Quick Update .. I found another thread with a similar request (sorry) and added in this to the Quick CSS panel and it seems to be working!! Is there a way to make the logo shrink a little when the user scrolls down?

    #top .logo {
    padding-top: 0px;
    width: 300px;
    margin: 10px auto;
    float: none;
    height: auto;
    }
    .logo, .logo a {
    overflow: visible;
    }
    .logo img {
    max-height: 200px !important;
    }

    #1303545

    Hi Peta,

    Could you post a link to where we can see the actual results you are getting please?

    Best regards,
    Rikard

    #1303903

    Hi Rikard
    Sorry for taking so long to get back to you. The site is in maintenance mode, I will turn it to live for the next 24 hours – link is in the private content.
    If any of the CSS above is not necessary please let me know :)
    Thank you
    Peta

    #1304351

    Hi,

    Thank you for the update.

    If you want to decrease the size of the logo on scroll, try to add this script in the functions.php file.

    
    // a custom script
    // resize the logo on scroll
     function ava_logo_resize_on_scroll(){
    	?>
    	<script>
    		(function($) {
    			$(window).on("scroll", function() {
    				if($(this).scrollTop() < 50) { 
    					$(".logo").removeClass("logo-small");
    				} else {
    					$(".logo").addClass("logo-small");
    				}
    			});
    		})(jQuery);
    	</script>
    	<?php
    }
    add_action('wp_footer', 'ava_logo_resize_on_scroll');
    

    Then add this css code to specify the actual size of the logo on scroll.

    #top #header .logo.logo-small {
        width: 100px;
    }

    Best regards,
    Ismael

    #1304527

    Perfect – thank you :)

    #1304839

    Hi,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1304842

    Thanks Rikard, I’m happy for this one to be closed.
    Have a great day :)
    Peta

    #1305166

    Hi,

    Thanks for letting us know, I’ll go ahead and close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Logo to hang down past header’ is closed to new replies.