Different homepage, mobile/desktop

Posted in: Newspaper
Post count: 27

I set my homepage to display some blocks only in mobile view, with VC, it work fine but it doesn’t show new content because i set to enable unique articles, i need to disable unique article so the mobile view show latest posts. Any help please.

Post count: 1291

Hi,

The theme doesn’t have an option to set a different page for mobiles, sorry. We plan to improve the mobile theme in a future update but for now i cannot say when this will be implemented. Until then you could try one of the solutions presented here – http://screencast.com/t/yQZEYNsJd6Lhttp://stackoverflow.com/questions/16165211/how-to-set-a-different-static-homepage-for-mobile-version-wordpress

Thank you!

Post count: 27

Hi,

With Visual composer, you can different block to page and set what can visible to desktop/tablet/mobile.

With the help of Visual composer you can do that, take a look at my website.

http://www.tagweightloss.com/

I set the slide to show only in Mobile.
The big grid to show only in Tablet/Desktop

See image

The problem is when i choose to have an unique article enabled the Mobile version doesn’t pull new content.

Post count: 1291

Hi,

The unique articles function doesn’t take into account those settings. I’ve added it on our list, we will check if it’s possible to make it work with this feature. If it’s not possible we will stay to our original plan (to change the mobile theme functionality). All this research may take some time and i cannot say if we’ll find a quick solution or it will take more time. Until then my advise is to try one of those solutions presented in my previous reply.

Thank you!

Post count: 27

Thanks for your reply, for most people that doesn’t know about coding, the VC solution is here and it works, for pages, homepage. I ll for your solution to mobile.

Post count: 27

I install your solution and it works fine.


<?php
if( is_front_page() ){

    include_once('mobile-detect/Mobile_Detect.php');
    $detect = new Mobile_Detect();

    if ( $detect->isMobile() || $detect->isTablet() ) {
        $redirect_url = 'http://www.tagweightloss.com/mobile';
        header('Location: ' . $redirect_url ); // Redirect the user
    }
}
?>
Post count: 5

Hello,

I would like to try this solution but I didn’t understand well where exactly I should put the above code.

Please can you give me more details about this.

Post count: 22421

Hello,

This method seems to be the working one: http://stackoverflow.com/questions/16165211/how-to-set-a-different-static-homepage-for-mobile-version-wordpress bvut we cannot guarantee it works as it is not tested. There a re multiple parts of code and editing you have to make in the theme rather than a simple copy and paste. Follow the link and read it carefully as there are explicit instruction to where the code goes and what you should include in the root of the theme.
If you cannot do it, we suggest hiring a freelancer to help out as this represents customization adn we cannot offer any custom work at the moment.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.