Footer Widgets in Mobile View

  • Author
    Posts
  • #149104

    Hi Taras!

    Is there any way to not show 1 of the widgets in mobile view? Specifically, we have 5 widgets in the footer and would like to show widgets 2,3,4 and 5 in mobile view and hide widget 1.

    The site is https://longevityachieved.wpcomstaging.com/

    Any help you can provide will be great!

    The blog I need help with is longevityachieved.wpcomstaging.com.

    #149118

    tarasdashkevych
    Theme Author

    Hi,

    By default, WordPress does not provide such option but you can use a custom CSS along with CSS media queries to hide the first footer widget in mobile views:

    
    @media (max-width: 500px) {
      .footer-widgets .widget:nth-child(1) {
        display: none;
      }
    }
    

    Hope this helps. Let me know if you have additional questions.

    Thank you,
    Taras

    #149122

    Worked perfectly, as always. Thank you!

    #149126

    tarasdashkevych
    Theme Author

    You are welcome! :)

The topic ‘Footer Widgets in Mobile View’ is closed to new replies.