<em>@cedjans 365187 wrote:</em><blockquote>Hi everybody
website: http://www.sportaanzee.be
I would like to change our homepage… So that visitors directly see our blog page when they visit the website by mobile.
Can somebody help us??
THX
Cé</blockquote>
I have spent a lot my time to fix the problem on your site.
1) Check device mobile
2) Redirect mobile layout to blog
You can do that as following below
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');
if ($detect->isMobile()) {
if((JRequest::getVar('option')!="com_k2") && (JRequest::getVar('view')!="itemlist") && (JRequest::getVar('layout')!="category")) {
header('Location: http://sportaanzee.be/index.php/blog/blog-2');
exit;
}
}
Please check on your site again, let me know if it helps