Tagged: x
-
AuthorPosts
-
March 5, 2017 at 8:04 pm #1395585
CooperReckParticipantMy logo overlaps my header and I want to replace it with the title of the site when I scroll down, is that possible?
URL: emersondolbytaxidermy.com
March 6, 2017 at 12:45 am #1395780
ChristopherModeratorHi there,
You can’t replace it with title of your site, but you can resize logo on scroll.
Please add following code in Customize -> Custom -> Global CSS :
.x-navbar.x-navbar-fixed-top.resize-logo .x-brand img, .x-navbar.x-navbar-fixed-top, .x-brand img, .x-brand { transition: all 0.3s linear; } .x-navbar.x-navbar-fixed-top.resize-logo .x-brand img { width: 7%; } .x-navbar.x-navbar-fixed-top.resize-logo .x-brand { margin-top: 0; }Please add following code in Customize -> Custom -> Global JavaScript :
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() >1) { $('.x-navbar').addClass("resize-logo"); } else { $('.x-navbar').removeClass("resize-logo"); } }); });Hope it helps.
March 6, 2017 at 11:41 am #1396537
CooperReckParticipantCould I replace it with a different image on scroll? And then have that image be non-overlapping?
March 6, 2017 at 12:03 pm #1396564
JoaoModeratorHi There,
Please follow this thread.
https://community.theme.co/forums/topic/different-logo-after-scrolling/
Hope it helps
Joao
March 6, 2017 at 8:08 pm #1397128
CooperReckParticipantHi! So I followed the thread and got sort of what I wanted. But I have something else that I want to try. So basically, I want every logo(like on every page) to be an image of the title. Except on the home page, I want it to start as another logo(the badge like image that is there now) and have it follow the rules of the scrolling transition that I set up. Any ideas?
Thanks
March 7, 2017 at 2:18 am #1397356
Paul RModeratorHi,
Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1395585 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
