Home › Forums › Support › How can I achieve header like https://themify.me/demo/themes/ultra-accountant/
- This topic has 16 replies, 2 voices, and was last updated 5 years, 10 months ago by David.
-
AuthorPosts
-
June 5, 2018 at 3:09 am #592168Mohit
Hi guys, I like header of https://themify.me/demo/themes/ultra-accountant/ website. Also check how it looks when you scroll down.
June 5, 2018 at 4:55 am #592233DavidStaffCustomer SupportHi there, you could try this:
Within customiser
1. Site Identity > Remove all identity and logo.
2. Layout > Header. Change all padding to zero.
3. Layout > Navigation. Set to Full width and inner to Contained. S et Location to Below Header. Add a navigation logo set to sticky and static.
4. Layout > Sticky Navigation. Select this and the transition effect you want.
5. Additional CSS add the following:.inside-navigation { position: relative; top: 30px; background-color: #000; }
change the #000 to match the Color set in the primary navigation.
The telephone number and social icons can be added to the Top Bar Widget area. We can help with positioning once they are there if you need.
The full hero image can be achieved using a GP Page Header set to full width with content and the necessary padding.
June 5, 2018 at 5:20 am #592240MohitThanks man!! your support is really great!!
There’s a little problem; there’s less margin between logo and primary nav now. How could I add more margin between nav and logo? By the way I added dummy logo to test things out.
https://planeteimmigration.com
Also once I have more menu items in primary menu, how can i make sure additional menu items that go on to the next line float to right.
Thanks again!!
June 5, 2018 at 5:29 am #592243DavidStaffCustomer SupportYou can Align the Navigation Right in the Customiser > Layout > Navigation.
Create a Menu in Dashboard > Appearance > Menus (or in the Customsier > Menus) and assign this to the Primary Navigation. The order the items are placed will be Top menu item = Left item in navigation.June 5, 2018 at 5:33 am #592245MohitCool.. I think you missed out on a small thing in the header I like.. When you scroll down you would notice part above “inside-navigation” disappears in ultra demo.. Thanks
June 5, 2018 at 5:38 am #592246DavidStaffCustomer SupportTry adding this CSS:
.sticky-enabled .main-navigation.is_stuck { margin-top: -30px !important; }
June 5, 2018 at 5:49 am #592252MohitThanks for answering all the questions.
If you don’t mind me asking one more regarding that demo website please answer:
In the primary nav of demo site you’d see “Book Appointment” menu item which has background and little border around it. When I try to add background it extends entire height of the “inside-navigation”. I want some margin on top and bottom not the entire height after I add background and border to a menu item.
June 5, 2018 at 5:56 am #592256DavidStaffCustomer SupportHave you tried this method:
https://docs.generatepress.com/article/adding-buttons-navigation/
June 5, 2018 at 5:58 am #592258MohitOk, I will try it.. I think as a side affect of all the customization, mobile menu items are visible.
June 5, 2018 at 6:03 am #592260MohitDang my bad. Although GP by default adds pages to primary nav enough though you have created a menu BUT it doesn’t add that to slideout nav lo man this is confusing.. Sorry for the trouble!!
June 5, 2018 at 6:03 am #592261DavidStaffCustomer SupportIf you want to limit the customisation to Desktop then we can wrap the CSS rules in a media query like so:
@media (min-width: 768px) { .inside-navigation { position: relative; top: 30px; background-color: #000; } .sticky-enabled .main-navigation.is_stuck { margin-top: -30px !important; } }
June 5, 2018 at 6:18 am #592268MohitI want header customization for both desktop and tablet. I understand it’d require different min-width.
Need another css tweak from you. If you’d notice demo’s mobile menu slideout animation, mobile menu slideout part has darker color and overlay over other non mobile menu nav area.
If I may sir, how can I do this?
Thanks,
Saurabh
June 5, 2018 at 6:46 am #592277DavidStaffCustomer SupportCustomiser > Colors > Slide Out Navigation allows you to set the navigation colors. To change the Overlay color requires this CSS:
.slideout-overlay { background-color: rgba(255,255,255,0.5); }
June 6, 2018 at 8:17 am #593193MohitThanks slide overlay worked. Regarding demo’s call to action “book appointment” button in navbar, I tried to do the same thing using the docs link you provided but background of “privacy policy” button in my case is still full height on navbar.
June 6, 2018 at 8:22 am #593197DavidStaffCustomer SupportHi, add this into your CSS rule for the nav button:
line-height: 2.5em;
Adjust the 2.5em accordingly.
-
AuthorPosts
- You must be logged in to reply to this topic.