- This topic has 6 replies, 3 voices, and was last updated 7 years ago by Leo.
-
AuthorPosts
-
April 3, 2017 at 5:26 am #301033Marie Odile
Hi,
I am trying to show my slider from the top of the page and that the main navigation menu it’s transparent when I arrive and then it sticks when scrolling down with a white background.
The only issue it’s that somehow my main navigation menu it’s not transparent before scrolling right now.
Please check : https://www.thefrenchcandle.com/homepage-v7/
My custom css looks like
.site-header {
display: none;
}/*to show logo on its real size*/
.main-navigation .navigation-logo img {
height: auto;
position: absolute;
left: 0;
}
.main-navigation:not(.navigation-stick) {
position: relative;
z-index: 99;
}/* to remove the arrows and add 20px separation*/
.menu-item-has-children .dropdown-menu-toggle {
display: none;
}
.main-navigation .main-nav ul li.menu-item-has-children > a {
padding-right: 20px;
}/* nav links effect */
.main-navigation .menu > .menu-item > a::after {
content: “”;
position: absolute;
right: 0;
left: 50%;
bottom: 15px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);display: block;
width: 0;
height: 1px;background-color: currentColor;
transition: 0.3s width ease;
}
.main-navigation .menu > .menu-item.current-menu-item > a::after,
.main-navigation .menu > .menu-item > a:hover::after {
width: 50%;
}Can you please help me ?
Thank you,
JesusApril 3, 2017 at 8:57 am #301128LeoStaffCustomer SupportHi there,
Is this what you are looking to do?
https://docs.generatepress.com/article/merging-header-navigation-content/Let me know.
April 3, 2017 at 9:17 am #301133Marie OdileHi,
Yes but as you can see the issue is that my content is not on the top top. Sorry, I forgot to update the page with merging header and main navigation. You can check again https://www.thefrenchcandle.com/homepage-v7/. Do you know why ?
Thank you,
JesusApril 3, 2017 at 9:25 am #301143TomLead DeveloperLead DeveloperThat white space on top is being caused by the padding applied to the Elementor area.
April 3, 2017 at 11:12 am #301192Marie OdileHi,
I didn’t change any setting on Elementor and I don’t see where this is coming from.
A month ago this was working perfectly fine but then when I created a new page and start from scratch this padding appear but I don’t know how to remove it without CSS.
Do you had someone before experiencing the same issue ? I didn’t do any update when it stop working so I don’t understand how it appeared.
Thank you,
JesusApril 3, 2017 at 12:16 pm #301213Marie OdileHi,
I used the code from Leo to remove padding from Elementor but it doesn’t seem to work.
Thanks in advance,
JesusApril 3, 2017 at 12:34 pm #301221LeoStaffCustomer SupportThis should work:
.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated { padding: 0; }
but I don’t see it being added.
Might be best to check with Elementor support to see how to remove that padding from that element.
-
AuthorPosts
- You must be logged in to reply to this topic.