- This topic has 17 replies, 4 voices, and was last updated 5 years, 1 month ago by
Leo.
-
AuthorPosts
-
May 3, 2018 at 11:48 am #566703
Helen
Hello support,
I’m going to update the site http://www.kerrycricket.com to GeneratePress Pro and Elementor as it’s running on an old free theme no longer supported. The club like the drop shadow under the white site header as it exists and I’m wondering how I can duplicate that effect on the GP header please?Is it slso possible to apply a drop shadow to the drop-down pages on the main navigation bar?
Many thanks for your help,
HelenMay 3, 2018 at 7:38 pm #566914Leo
StaffCustomer SupportHi there,
That header can be done with this method:
https://docs.generatepress.com/article/navigation-logo/#navigation-as-headerThen this CSS should add the shadows:
.main-navigation { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); } .main-navigation ul ul { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); }
You can fine tune it here: https://www.cssmatic.com/box-shadow
Let me know.
May 4, 2018 at 3:07 am #567152Helen
Hi Leo,
Many thanks for your quick reply and assistance. I’m not very familiar with adding css, do I add that code into simple css or somewhere else please?
Thanks again,
HelenMay 4, 2018 at 8:39 am #567426Leo
StaffCustomer SupportOne of these methods here: https://docs.generatepress.com/article/adding-css/
May 4, 2018 at 11:03 am #567598Helen
That’s great Leo,
Many thanksMay 4, 2018 at 2:19 pm #567735Leo
StaffCustomer SupportNo problem 🙂
January 20, 2020 at 6:03 am #1137789Rickard
Hello!
The solution above works, but it only shows when you are at the very top of the page.
I am using a sticky header and when I scroll down the shadow doesn’t show anymore.
Is it possible to add shadow to a sticky header?
January 20, 2020 at 7:01 am #1137990David
StaffCustomer SupportHi there,
try this instead:
.main-navigation, .sticky-enabled .main-navigation.is_stuck { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); } .main-navigation ul ul { -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); }
January 20, 2020 at 7:10 am #1137999Rickard
That worked perfect, thank you!
January 20, 2020 at 7:22 am #1138012David
StaffCustomer SupportYou’re welcome
February 22, 2020 at 7:23 am #1173644Rickard
Hello again!
Is it possible to add this shadow also to the top of the footer bar?
February 22, 2020 at 9:13 am #1173734David
StaffCustomer SupportMaybe try this:
.site-info { -webkit-box-shadow: 0 -10px 5px 0px rgba(0,0,0,0.75); -moz-box-shadow: 0 -10px 5px 0px rgba(0,0,0,0.75); box-shadow: 0px -10px 5px 0px rgba(0, 0, 0, 0.75); }
February 22, 2020 at 1:06 pm #1173875Rickard
Thank you! 🙂
February 24, 2020 at 6:00 am #1175100David
StaffCustomer SupportGlad to be of help
June 24, 2020 at 7:46 am #1340193Marc
You guys here at the support staff are just perfect!
Honestly, one of the best support forums I have ever used (compared to Enfold’s, OceanWP’s and Astra’s).Thumbs up, and keep up the good work!
-
AuthorPosts
- The topic ‘Drop shadow on header’ is closed to new replies.