Site logo

Archived topic

Issue with Header

6 replies · Started by Marie Odile on April 3, 2017

Viewing posts 1–7 of 7

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,
Jesus

Hi,
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,
Jesus

That white space on top is being caused by the padding applied to the Elementor area.

Hi,
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,
Jesus

Hi,
I used the code from Leo to remove padding from Elementor but it doesn't seem to work.
Thanks in advance,
Jesus

This 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.

This archived topic is closed to new replies.