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

    HI,

    How do I make the extra elements section at the very top be sticky on mobile as well (currently it is only sticky on desktop)

    Thanks

    #1304043

    Hey,

    Thanks for contacting us!

    Please add following code to Quick CSS field in Enfold theme options > General Styling tab

    @media only screen and (max-width: 990px) {
    #header_meta {
        position: fixed;
        width: 100%;
        top: 0;
    }
    #header_main {
        margin-top: 30px;
    }}
    @media only screen and (max-width: 515px) {
    #header_main {
        margin-top: 50px;
    }}
    

    Best regards,
    Yigit

    #1304060

    Thank you. I have 2. more questions

    1- Is is possible to make the header sticky as well on mobile?

    2- Is it possible to have a close icon so user can dismiss this bar this if they want to?

    #1304078

    Hey,

    1- Please refer to this post – https://kriesi.at/documentation/enfold/header/#sticky-header-on-mobile
    2- In that case I think it would be better if you went to Appearance > Customize > WooCommerce > Store Notice and enable it. Then you can add following code to bottom of Quick CSS field to adjust the colors of the notice bar

    p.demo_store {
    background: black; 
    color: white;
    }
    p.demo_store a {
        color: red;
    }

    Best regards,
    Yigit

    #1304118

    I went with option 1 but now I seeing some extra space below the header

    screenshot – https://ibb.co/Wsdb411

    how do I remove that space on mobile?

    #1304127

    Hi,
    Please add following code to Quick CSS field in Enfold theme options > General Styling tab

    @media only screen and (max-width: 480px){ 
    .responsive #top #main {
        margin-top: 136px;
    }}
    @media only screen and (max-width: 767px) {
    .responsive #top #main {
        margin-top: 120px;
    }}
    

    Best regards,
    Yigit

    #1304234

    works perfect

    thanks as always

    #1304266

    Hi,

    Always happy to help :)
    Let us know if you have any other questions and enjoy your weekend!

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Sticky extra elements section on mobile’ is closed to new replies.