Support » Everything else WordPress » Load another banner for different screen size

  • Not really screen size, but viewport.
    php can’t detect viewport, so I use javascript to get the viewport width.

    Now I need to pass the width to php so that php can decide to load a big banner or a small banner. Something like this:

    If viewport width > 1024, load big banner;
    if Viewport width <=104, load small banner.

    I heard that $_GET[‘…’] can get javascript variable into php, but I didn’t get it.

    Please help!

  • The topic ‘Load another banner for different screen size’ is closed to new replies.