Tagged: x
-
AuthorPosts
-
July 11, 2016 at 4:39 am #1081100
m_c__kParticipantHi,
Is it possible to have a text instead of logo when at top of the page, which then turns into logo when scrolling (with fixed-top)? And preferably with CSS?
Thanks a lot,
MaciekJuly 11, 2016 at 5:08 am #1081128
LelyModeratorHello Maciek,
We can achieve this using custom Javascript and not CSS. Please add this custom code on Appearance > Customize > Custom > Edit Global Javascript:
jQuery(function($) { $('.x-brand').css('display','none'); $('.visually-hidden').css({'height':'auto', 'width':'auto', 'clip':'initial'}); $(window).scroll(function() { if($('.x-navbar').hasClass('x-navbar-fixed-top')) { $('.visually-hidden').css({'height':'1', 'width':'1', 'clip':'rect(0 0 0 0)'}); $('.x-brand').css('display','block'); }else{ $('.x-brand').css('display','none'); $('.visually-hidden').css({'height':'auto', 'width':'auto', 'clip':'initial'}); } }); });Hope this helps.
July 12, 2016 at 9:00 am #1083117
m_c__kParticipantThanks a lot! 🙂
July 12, 2016 at 9:05 am #1083130
JvPParticipantWill this be possible with the upcoming header update?
July 12, 2016 at 11:38 am #1083362
Nabeel AModeratorHi there,
Thanks for writing in! 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, so we have a better understanding of the situation.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1081100 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
