How can I redirect mobile users to diff url, but also allow them to come back to full site

function mobile_redirect() { if (isset($_COOKIE[“redirected”]) && $_COOKIE[“redirected”]) return; global $is_iphone; if( isset($is_iphone) && $is_iphone ) { wp_redirect( ‘/mobile/’ ); setcookie(“redirected”, true); exit; } } add_action(‘init’, ‘mobile_redirect’); This code redirects every mobile visitor to /mobile/ and then sets a cookie that the user is redirected. If the cookie is set, then the redirect doesn’t take place. … Read more

My website is not responsive on mobile devices

Often times even if we have setup our media queries correctly, the site still isn’t responsive to those queries. You need to set a viewport in your header.php to fix this. More often than not I find that this affects macs instead of PCs. but it’s still a good idea to add this no matter … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)