Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s not possible to do “responsive” layout widget logic, because logic is executed server-side, so it can’t respond to client-side layout/screen-size changes dynamically.

    You could do the above by putting “is_front_page()” in your widget logic (to put the widget in your front_page) then in your CSS you can hide it when the width is 479px or less. Which would look something like…

    @media screen and (max-width: 479px)
    {
        #sidebar #get-recent-comments-or-whatever {display:none}
    }
    Thread Starter Mark Burgess

    (@markburgess)

    That works. Good thought. For a later version, you might consider incorporating an Ajax option that becomes available when the widget loads. Just a thought. Thanks for the note.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsive Test’ is closed to new replies.