[Resolved] Mobile Search

Home Forums Support [Resolved] Mobile Search

Home Forums Support Mobile Search

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1258549
    metcomllc@aol.com

    Is it possible to have a search icon in Mobile ONLY? (not desktop)

    #1258620
    Leo
    Staff
    Customer Support

    Hi there,

    We can hide it on desktop using this CSS:

    @media (min-width: 769px) {
        .main-navigation li.search-item {
            display: none !important;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1258646
    metcomllc@aol.com

    That didn’t work. The search is visible in the navigation with the CSS added.

    #1258650
    Leo
    Staff
    Customer Support

    Edited the CSS above.

    Give it another shot?

    #1258667
    metcomllc@aol.com

    Where is the new CSS?

    #1258668
    Leo
    Staff
    Customer Support
    #1258671
    metcomllc@aol.com

    That didn’t work

    #1258673
    metcomllc@aol.com

    If it helps, this is my current CSS

    #mobile-header .inside-navigation {
        display: flex;
        flex-direction: column;
    }
    #mobile-header img { width: 100%; height: auto; }
    h1.entry-title {
    display: none;
    }
    @media (max-width: 768px) {
        .page-hero {
            background-image: url(https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/Hypnosis-NYC-for-quit-smoking-weight-loss-anxiety-phobias-confidence.jpeg);
        }
    }
    #1258674
    Leo
    Staff
    Customer Support

    I’m not seeing the CSS being added.

    Can you clear and disable Autopimize and WP Super Cache?

    #1258678
    metcomllc@aol.com

    I just added it again and it worked. Thank you. Is it possible “On Mobile” to have the search on the right and the menu on the left?

    #1258746
    metcomllc@aol.com

    Thanks

    #1258791
    Leo
    Staff
    Customer Support

    No problem 🙂

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