[Support request] custom content to the mobile/header area

Home Forums Support [Support request] custom content to the mobile/header area

Home Forums Support custom content to the mobile/header area

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #371853
    Johannes

    Hi, I am using the code snippet and some custom content to the mobile/header area. I have used this CSS:

    .mobile-header-content {
    float: left;
    padding: 20px;
    }

    .menu-toggle {
    text-align:right!important;
    }

    I am not able to have the content and the menu icon on same horizontal level.

    regards
    Johannes

    #372010
    Leo
    Staff
    Customer Support

    Hi there,

    Can you provide a link to your site?

    Thanks!

    #372036
    Johannes

    Hi, pls take a look here, ( the site is only for testing purpose ):

    http://www.johannesoedegaard.com/generatepresstest/

    #372096
    Leo
    Staff
    Customer Support

    Hmm I would try turning off mobile header feature then just use this CSS:

    @media(max-width: 768px) {
        #site-navigation {
            clear: none;
            background: transparent;
            z-index: 500;
            position: relative;
        }
    
        .site-branding {
            display: block;
            float: left !important;
        }
    
        .site-logo {
            float: left !important;
            clear: none !important;
            max-width: 70%;
        }
    
        button.menu-toggle {
            width: auto;
            float: right;
        }
    }
    #372438
    Johannes

    Hi, thank you for the code, but what I wanted to achieve was what written here:

    Adding HTML Inside the Mobile Header
    https://docs.generatepress.com/article/mobile-header/

    In the future I may need this function, but then the mobile menu symbol ( hamburger ) must be able to show up on top and to the right.

    – Johannes

    #372713
    Leo
    Staff
    Customer Support

    You would need a mobile header logo, which should be quite small, instead of the site title and description for it to look good.

    The toggle is default on the right of logo with mobile header.

    Let me know if this helps.

    #372980
    Johannes

    ok, thank you, BUT then it should not be presented as an option. I mean what is written here:
    https://docs.generatepress.com/article/mobile-header/

    -regards
    Johannes

    #373054
    Leo
    Staff
    Customer Support

    No problem!

    Some people would have a logo specific for mobile so the option is there.

    We appreciate the suggestion! 🙂

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