This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Vertical alignment of the Compact Search Box in Fixed Nav.Menu

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Vertical alignment of the Compact Search Box in Fixed Nav.Menu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56734
    warren_uPihwarren_uPih
    Participant

    Subject: Alignment Issue: Compact Search Box Misaligned in Sticky Header
    Description: Hello Support Team,

    I am setting up a Compact Search Box inside my navigation menu. Currently, the search icon aligns perfectly with the other menu links in the standard (static) header view.

    The Issue: The problem occurs when scrolling down to trigger the Sticky Menu. In the sticky state, the search icon becomes misaligned, which throws off the alignment of the other menu elements.

    Troubleshooting Attempted: I attempted to fix the alignment by adjusting the margin-top in the Ajax Search Pro > Layout Options > Search box layout > Search box Top Margin. However, this adjustment applies globally; while it fixes the sticky menu, it breaks the alignment in the main (static) menu.

    Request: Could you please help me fix the search box within the Sticky Header without affecting the standard menu alignment?

    Environment:

    Website URL: https://drgt.com/test/

    Plugin Version: 4.28.0

    Theme: Betheme

    #56737
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Thank you for all the details it helps a lot. It looks like it’s due to the top margin, which also applies to the box in the sticky mode. I think the easiest and most convenient soluton is to use a short custom CSS to offset the margin when the sticky state is enabled:

    .is-sticky .asp_m_1 {
        margin-top: 6px !important;
    }

    This will set the margin to 6px on the box, when the sticky container is enabled.

    #56740
    warren_uPihwarren_uPih
    Participant

    Thank you so much. It worked!

    #56743
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #56744
    warren_uPihwarren_uPih
    Participant

    Thank you

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