Home › Forums › Basel support forum › Custom sticky header?
Custom sticky header?
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
June 1, 2016 at 3:51 am #1148
cruzcyclingParticipantHi guys,
I was just wondering whether it was possible to change the design of the sticky header, to be different to the header we’ve applied to the website.
Currently we’re using the ‘Logo centre’ header, with our standard company logo up top. We’d like for that logo to change to another one of our logos (and centre align it too) in the sticky header. Please advise as to whether this is possible and how we could achieve this. Thank you very much for your time.
Regards,
DominicJune 1, 2016 at 5:16 pm #1153
Artem TemosKeymasterHello,
Thank you for using our theme.
We have prepared some CSS code that may do the necessary adjustments on your web-site to make sticky header look as you want to. This part add to Custom CSS section in Theme Settings -> Custom CSS
.sticky-header .container { display: flex; -webkit-display: flex; display: -ms-flex; justify-content: space-between; -webkit-justify-content: space-between; justify-content: -ms-space-between; align-items: center; -webkit-align-items: center; -ms-align-items: center; height: auto; min-height:60px; } .sticky-header .container:after, .sticky-header .container:before { content:none; } .sticky-header .right-column, .sticky-header .main-nav { width:40%; } .sticky-header .main-nav { order: -1; -ms-order: -1; -webkit-order: -1; text-align: left; } .sticky-header .site-logo { width:20%; text-align: center; } .sticky-header .site-logo img { max-width:100%; }
And this part add only for mobile devices
.sticky-header .right-column, .sticky-header .site-logo { width:auto; } .sticky-header .right-column { flex-shrink: 0; -ms-flex-shrink: 0; -webkit-flex-shrink: 0; -moz-flex-shrink: 0; }
June 2, 2016 at 4:39 am #1162
cruzcyclingParticipantThank you, admin!
That worked like a charm. If you don’t mind, I have another question now that we’ve implemented the change.
What would we have to change in the CSS to center the nav menu, and have the logo on the left side, just for the sticky header only?
Much appreciated,
DominicJune 2, 2016 at 4:00 pm #1167
Artem TemosKeymasterHi,
Just remove all the code we have provided to you and logo will be on the left side with menu center. 🙂
June 3, 2016 at 6:29 am #1180
cruzcyclingParticipantOh, right. Haha should’ve known that. Okay well I think that’s it from me for now. Thanks for all your help. You can go ahead and mark this thread as solved. Have a good one!
Regards,
DominicJune 3, 2016 at 4:36 pm #1182
Artem TemosKeymasterYou are welcome, write us when you have any difficulties or issues with our theme.
And we would be glad if you will rate our theme with 5 stars on themeforest in case you are satisfied with our theme and customer service http://themeforest.net/downloads
Thank you in advance 🙂
-
AuthorPosts
Tagged: custom, header, layout, logo, sticky header, web design
The topic ‘Custom sticky header?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register