Disabling Wp_is_mobile from backend?

It seems like your theme may be using the wp_is_mobile function incorrectly as it should not be used for theme specific styling, etc and is also unreliable as it only inspects the browser User-Agent. As I don’t know what your theme is, I cannot say for definite if that is the case but see this … Read more

Different Front page for Mobile

Switching the actual template file could work in the same way as above using get_template_part(). For example… <?php if ( wp_is_mobile() ) { // If it is a mobile device get_template_part( ‘mobile-front’, ‘page’ ); } else { // If it is not a mobile device get_template_part( ‘desktop-front’, ‘page’ ); } // end wp_is_mobile() To take … 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

Create a page for a theme only

So instead of creating a theme for it i ended up using the template_redirect with an if statement to check the url for a certain thing. function page_redirect() { if ($_SERVER[‘REQUEST_URI’] == $home . ‘/other-sites’) { require(TEMPLATEPATH . ‘/includes/other-sites.php’); } if ($_SERVER[‘REQUEST_URI’] == $home . ‘login’) { require(TEMPLATEPATH . ‘/includes/login.php’); } } add_action(‘template_redirect’, ‘page_redirect’); Simply … Read more

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