I'm a fairly php and javascript newb, so I'm having difficulty getting this to work, or finding and similar question/answer here.
Here's my newb php to show show what I want to accomplish. I know jquery or js should be used to find the browser window width, but I'm not sure how to implement this - I need to determine my fake if(browser_is_big())
function:
<?php if (wp_is_mobile()) { //is this a mobile device? ?>
<!--Then no banner ad here.-->
<?php } else { //if not mobile, then display desktop banner ad ?>
<?php if (browser_is_big('browser window width is greater than 1320')) {
include 'banner_790_width.php';
} else {
include 'banner_468_width.php';
}?>
<?php } ?>