Detect mobile and serve up alternate content…
require_once( CHILD_DIR . '/lib/functions/mobile_detect.php' );
function xmit_cover_image_rotator() {
if (is_mobile()) {
echo '';
}
elseif (is_home()) {
echo '<div id="cover-image-rotator">';
echo '<div class="rotator-wrap">';
if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '197' );
echo '</div>';
echo '</div>';
}
}
add_action ( 'genesis_after_header', 'xmit_cover_image_rotator' );