-
AuthorPosts
-
June 4, 2021 at 2:23 am #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
June 4, 2021 at 2:32 pm #1304043Hey,
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,
YigitJune 4, 2021 at 3:05 pm #1304060Thank 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?
June 4, 2021 at 3:43 pm #1304078Hey,
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 barp.demo_store { background: black; color: white; } p.demo_store a { color: red; }Best regards,
YigitJune 4, 2021 at 5:54 pm #1304118I 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?
June 4, 2021 at 7:18 pm #1304127Hi,
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,
YigitJune 6, 2021 at 3:27 am #1304234works perfect
thanks as always
June 6, 2021 at 11:03 am #1304266 -
AuthorPosts
- The topic ‘Sticky extra elements section on mobile’ is closed to new replies.
