Tagged: x
-
AuthorPosts
-
September 6, 2016 at 8:18 pm #1163796
btboganParticipantHello there. Love the theme so far.
One effect I cannot find in the customizer is to be able to set a menu & logo size in sticky mode different than at the top.
I would like for it to transition smoothly as well.
As I looked in the forum topics any code I saw given made it a very abrupt switch.
Could you help me with a way to have the menu and logo shrink a little bit smaller upon scroll down and then back to full size when at the top again. And both of those movements to be a smooth transition.
thanks so much 🙂
Looking forward to using this theme fully!
God Bless.September 6, 2016 at 10:51 pm #1163939
Prasant RaiModeratorHello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks.
September 29, 2016 at 9:03 am #1195751
btboganParticipanthey there, i thought i would be getting an email when someone replied so i totally never saw this until now.
is there a way I can set it somewhere to receive emails when someone replies?
also the site url is http://www.barrettbogan.com
🙂
thanks again.
September 29, 2016 at 10:15 am #1195849
RupokMemberHi there,
Yes you can subscribe your post to get email notification – http://prntscr.com/cnt21w
However it seems your website is under construction. Please take it off or provide us the credentials in private reply so that we can check and assist you on this.
Thanks
September 30, 2016 at 8:17 am #1197252
btboganParticipantoh nice haha.
ok thanks for showing me where to subscribe, I had never seen that before.
Also, I took the site out of construction for you 🙂
barrettbogan.com
thanks
September 30, 2016 at 11:53 am #1197514
Nabeel AModeratorHi again,
Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('body.x-navbar-fixed-top-active .x-navbar-wrap').css("height", "65px"); $('.x-navbar-inner').css("min-height", "65px"); $('.x-brand img').css("width", "150px"); $('.x-navbar .desktop .x-nav > li > a').css({"padding-top": "30px", "height": "65px"}); } else { $('body.x-navbar-fixed-top-active .x-navbar-wrap').css("height", "100px"); $('.x-navbar-inner').css("min-height", "100"); $('.x-brand img').css("width", "250px"); $('.x-navbar .desktop .x-nav > li > a').css({"padding-top": "45px", "height": "100px"}); } }); });And then add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-brand img { transition: all 0.3s ease; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
October 1, 2016 at 8:32 am #1198475
btboganParticipantgreat, looks great. i like the ease of the logo.
3vmore things are not quite there yet though.
(1) The header does shrink but it does not have the same ease as the logo, so they see to go at different speeds, which is weird. How can I set the header transition to the same ease as the logo?
(2) Also the menu items. they jump up to stay centered and I would like them to ease at the same rate. So ultimately the logo, the header bar, and the menu items should al make their transition at the same rate.
(3) It seems that when the logo shrinks it is no longer vertically centered on the header (more space above than below). How to I fix that?
thanks so much.
October 1, 2016 at 4:56 pm #1198783
RadModeratorHi there,
Logo transition is based on CSS, while navbar size is based on static size through javascript. I tried applying the same CSS and it won’t work. Would you mind providing your login credentials? I like to test the CSS based resize instead of javascript.
Thanks!
October 1, 2016 at 6:18 pm #1198821
btboganParticipantThis reply has been marked as private.October 2, 2016 at 1:39 am #1199054
ChristopherModeratorHi there,
Please add this code:
.x-navbar .desktop .x-nav>li a { transition: all 0.3s ease; }Update JS code to :
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('body.x-navbar-fixed-top-active .x-navbar-wrap').css("height", "65px"); $('.x-navbar-inner').css("min-height", "65px"); $('.x-brand.img').css("margin-top", "11px"); $('.x-brand img').css("width", "150px"); $('.x-navbar .desktop .x-nav > li > a').css({"padding-top": "30px", "height": "65px"}); } else { $('body.x-navbar-fixed-top-active .x-navbar-wrap').css("height", "100px"); $('.x-navbar-inner').css("min-height", "100"); $('.x-brand.img').css("margin-top", "20px"); $('.x-brand img').css("width", "250px"); $('.x-navbar .desktop .x-nav > li > a').css({"padding-top": "45px", "height": "100px"}); } }); });Hope that helps.
October 2, 2016 at 11:52 am #1199436
btboganParticipantOH MAN, haha perf. thanks so much.
And the last thing i can think of for now…
How can I make the header on mobile smaller? as in less height.
thank you so much.
October 2, 2016 at 12:32 pm #1199475
RupokMemberHi there,
Thanks for writing back! You can add this under Custom > CSS in the Customizer.
@media only screen and (max-width: 979px) { body.x-navbar-fixed-top-active .x-navbar-wrap { height: 50px !important; } .x-brand.img { margin-bottom: 5px !important; margin-top: 5px !important; } .masthead-inline .x-btn-navbar { margin-top: 20px; } }Hope this helps.
Cheers!
October 2, 2016 at 12:40 pm #1199484
btboganParticipantok
it seems to be making the section row scoot up instead of making the header shorter…?
October 2, 2016 at 12:42 pm #1199486
btboganParticipantok so once you scroll down and back up it is the desired height. but upon loading the page the header is actually bigger.
I would actually like the header to be that smaller height all the time on mobile as well as sticky so it doesn’t go anywhere.
October 2, 2016 at 1:17 pm #1199512
RupokMemberHi there,
Let’s update the code a bit :
@media only screen and (max-width: 979px) { body.x-navbar-fixed-top-active .x-navbar-wrap { height: 50px !important; } .x-navbar { height: 70px; text-align: left; } .x-brand.img { margin-bottom: 5px !important; margin-top: 5px !important; } .masthead-inline .x-btn-navbar { margin-top: 20px; } }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1163796 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
