[Resolved] Sticky navigation loses style when adding ajax search in primary navigation

Home Forums Support [Resolved] Sticky navigation loses style when adding ajax search in primary navigation

Home Forums Support Sticky navigation loses style when adding ajax search in primary navigation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #829944
    José

    Hello, I added AJAX Search for WooCommerce in the Primary Navigation with the following css


    @media
    (min-width: 768px) {
    #site-navigation .inside-navigation {
    position: relative;
    display: flex;
    }
    div.asp_m.asp_m_1 {
    position: absolute;
    bottom: 0;
    right: 0;
    top: auto;
    }
    }
    .dgwt-wcas-search-wrapp{margin: auto;box-sizing:border-box}

    The problem is when you apply the sticky navigation, I go through the site, change to two rows and lose the style.

    Thanks for the help

    image
    attached image

    #830005
    Leo
    Staff
    Customer Support

    Hi there,

    Give this a shot:

    @media (min-width: 768px) {
        #site-navigation .inside-navigation, #sticky-navigation .inside-navigation {
            position: relative;
            display: flex;
        }
        div.asp_m.asp_m_1 {
            position: absolute;
            bottom: 0;
            right: 0;
            top: auto;
        }
    }
    #830044
    José

    Hello Leo, thanks for your attention. The ccs that sent me work correctly when walking the site, but have a detail when it comes back up: jump (a separation) before it reaches its original position, I do not know where the separation comes from … if you have any idea .. .

    Thank you

    Image

    I send you input data from the site
    username: support
    Password: abcd

    #830082
    Tom
    Lead Developer
    Lead Developer

    Instead of this:

    #site-navigation .inside-navigation, #sticky-navigation .inside-navigation {
        position: relative;
        display: flex;
    }

    Try this:

    .main-navigation:not(.slideout-navigation) .inside-navigation {
        display: flex;
        position: relative;
    }

    Let me know 🙂

    #830165
    José

    It works perfect.

    Thank you

    #830758
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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