Tagged: x
-
AuthorPosts
-
May 11, 2016 at 6:17 am #985634
morganthxParticipantHello,
I would like to create inverted logo style similar to this website.
I am using Integrity with Revolution slider above navigation. I tried to implement this technique both in revolution slider itself and the header files of integrity by it only leaves a gap.
Can you please help me out regarding the same? I am not using cornerstone on this page.
Regards
morganMay 11, 2016 at 8:13 am #985783
ChristopherModeratorHi there,
Please select ‘fixed top’ position under Customize -> Header.
Then add following code in Customize -> Custom -> CSS :h1.site-title { position: fixed; }Hope it helps.
May 12, 2016 at 12:46 am #987212
morganthxParticipantThis reply has been marked as private.May 12, 2016 at 12:54 am #987214
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> JavaScript :
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 50) { $('.x-brand img').attr("src","http://gpmc.hatterinnovations.com/wp-content/uploads/2016/05/gpmc_logo_light.png"); } else { $('.x-brand img').attr("src","http://gpmc.hatterinnovations.com/wp-content/uploads/2016/05/gpmc_logo_dark.png"); } }); });Hope it helps.
May 12, 2016 at 4:38 am #987505
morganthxParticipantI tried that code, it only changes the color of the logo and doesnt make it sticky top, what i am looking for is continuity like the logo should stick to the top of the position and as soon as it enters the navbar it should change color or load different image. like it happens in http://conranandpartners.com
Thank you!
RegardsMay 12, 2016 at 5:23 am #987561
Paul RModeratorHi,
Please change the code provided above with this.
jQuery(document).ready(function($){ var $sliderheight = $('.x-slider-container.above').outerHeight(); $(window).scroll(function(){ if ($(this).scrollTop() >= $sliderheight) { $('.home .x-brand img').attr("src","http://gpmc.hatterinnovations.com/wp-content/uploads/2016/05/gpmc_logo_light.png"); } else { $('.home .x-brand img').attr("src","http://gpmc.hatterinnovations.com/wp-content/uploads/2016/05/gpmc_logo_dark.png"); } }); });Hope that helps.
May 12, 2016 at 8:05 am #987715
morganthxParticipantThis reply has been marked as private.May 12, 2016 at 11:40 am #988077
Nabeel AModeratorHi again,
Further customization from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding.
May 13, 2016 at 11:03 pm #990820
morganthxParticipantI believe all the things i have been provided on this forum are related to custom development but sticky logo to the top is more of a theme support related question. You can at least point me in the direction what css to edit to make it stick to top.
Best Regards
May 14, 2016 at 1:38 am #990935
Rue NelModeratorHello There,
Your example url is not using X. They have two versions of headers (one with just a logo and the other is with the logo nad menu) which would switch and be hidden when you scroll upon the page. In your case, you can make use of the following steps as an alternative.
1.] Please edit the page in Cornerstone.
2.] Go to the settings tab, Settings > Custom JS and insert the following custom js code(function($){ $('<a href="http://gpmc.hatterinnovations.com/" class="x-brand img" title="Welcome"><img src="http://gpmc.hatterinnovations.com/wp-content/uploads/2016/05/gpmc_logo_dark.png" alt="Welcome"></a>').appendTo( $('.x-slider-container.above') ); })(jQuery);3] And please insert the following custom css in the settings tab, Settings > Custom CSS
.x-slider-container.above .x-brand.img { position: absolute; top: 10px; left: 30px; z-index: 1050; }Please let us know if this works out for you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-985634 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
