• I’m really liking how the twentyeleven will respond to mobile devices and arrange stuff more appropriately.

    However, how can I query pragmatically in PHP API whether the theme is being displayed on a desktop or mobile device, whether stuff as been shifted about etc?

    I’ve like to further tailor my layout and widgets for mobile users. i.e. smaller and less widgets for mobile users.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m not sure what you mean with PHP API, do you want to find who has been viewing your website through some-sort of analytic approach?

    Thread Starter Arthur Yarwood

    (@arfa_)

    What I want to do, is when the site is viewed on a mobile device, I want to dynamically serve up different widgets/content, that fits the rearranged twenty eleven theme better and is more light weight.

    So I’m looking for a WP php function, that’ll let me determine if twentyeleven has responded it’s layout to a mobile device. Something I can use in my own child theme and/or plugin.

    Though digging some more, it seems all of twentyeleven’s responsiveness is implemented within CSS, so I’m not sure if the theme php code is even aware of the device…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Querying TwentyEleven's mobile responsiveness’ is closed to new replies.