[Support request] Issue with Header

Home Forums Support [Support request] Issue with Header

Home Forums Support Issue with Header

  • This topic has 6 replies, 3 voices, and was last updated 7 years ago by Leo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #301033
    Marie 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,
    Jesus

    #301128
    Leo
    Staff
    Customer Support

    Hi there,

    Is this what you are looking to do?
    https://docs.generatepress.com/article/merging-header-navigation-content/

    Let me know.

    #301133
    Marie Odile

    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

    #301143
    Tom
    Lead Developer
    Lead Developer

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

    #301192
    Marie Odile

    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

    #301213
    Marie Odile

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

    #301221
    Leo
    Staff
    Customer Support

    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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.