- This topic has 29 replies, 4 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
January 12, 2023 at 10:46 pm #2493775
Michelle
I added an image of a deckled edge torn paper beneath my sticky nav header and would like to know how to make it part of the nav so the entire torn edge scrolls. (I want my logo to be on top of the image, which would make the header half the height it is now.)
January 12, 2023 at 11:23 pm #2493786Fernando Customer Support
Hi Michelle,
Can you try adding this through Appearance > Customize > Additional CSS?:
.gb-container.gb-container-05c87ebf { position: fixed; top: 20px; z-index: 1000; width: 100%; } .sticky-enabled nav.main-navigation.is_stuck { box-shadow: unset; } nav#site-navigation { z-index: 1001; position: relative; }Is this what you’re looking for?
January 13, 2023 at 12:11 am #2493828Michelle
YES! That is nearly perfect! I’d like the deckle to be higher (less padding between the sticky nav and the deckle)
January 13, 2023 at 12:21 am #2493836Michelle
Thank you!
January 13, 2023 at 12:22 am #2493837Fernando Customer Support
If you try reducing the
20pxpadding from the code, does that work?January 13, 2023 at 12:34 am #2493849Michelle
I think it looks nice. The right side shows the straight line of the bottom navigation header a bit, but I can play with it more tomorrow to see if I can hide that more. Thanks again. 😊
January 13, 2023 at 1:03 am #2493875Fernando Customer Support
You’re welcome, Michelle!
January 13, 2023 at 11:26 am #2494602Michelle
I just noticed that on scroll, the header stretches and has a transparent strip on the top:
Any ideas how to fix this?
January 13, 2023 at 12:21 pm #2494650Ying
StaffCustomer SupportCan you link us to your site and provide login?
January 13, 2023 at 1:16 pm #2494699Michelle
Here it is (below)
I was able to get rid of the transparent strip at the top by tweaking the opacity on the header background, but the issue of the header stretching on scroll is still there.
I think it would look better to make the logo larger, but I’m not sure how to do that with an svg image
January 13, 2023 at 1:35 pm #2494717Ying
StaffCustomer SupportI’m not seeing the header stretching issue.
You can control the logo height at customizer > layout > primary navigation > Menu Item Height.
January 13, 2023 at 1:56 pm #2494729Michelle
I’m having a challenge. When I set the opacity of the navigation background in Customizer Colors to full white, the header covers part of the deckled edge.
When I set the navigation background in Customizer>Colors>Navigation Background to transparent, the decked edge shows nicely, except then there is a transparent strip on the top
Also, on scroll, this is what happens:
I took the site off of Maintenance Mode so you can see it.
January 13, 2023 at 2:55 pm #2494762Ying
StaffCustomer SupportIf I may suggest, I will add the background image directly to the navigation:
nav#site-navigation:before,#sticky-navigation:before { content:""; position: absolute; top: 100%; width: 100%; height: 50%; background-image: url(https://your-domain.com/wp-content/uploads/2023/01/13023741/Final-deckle-copy.png); background-position: center center; background-size: 100%; background-color:transparent; background-repeat: no-repeat; }And you need to properly crop the image.
January 13, 2023 at 3:39 pm #2494792Michelle
I added the code and the deckled edge was no longer sticky. (I changed the transparent setting in Customizer>Colors>Navigation Background to #ffffff and that took care of the transparent issue.)
January 13, 2023 at 3:49 pm #2494794Ying
StaffCustomer SupportI added the code and the deckled edge was no longer sticky.
The container with the image needs to be removed.
And the CSS is not working as you didn’t change the background image URL, to protect your site’s privacy, I used
your-domainin the CSS instead of your site’s real domain. -
AuthorPosts
- You must be logged in to reply to this topic.