Shaun_mav Posted July 15, 2022 Share Posted July 15, 2022 (edited) Site URL: http://worksbyshaun.com Hello and thank you for your help.... I am having to make a duplicate of my HOME page (WIP - redoing it using Fluid Engine), so it can be edited specifically for mobile devices, because currently there is one huge layout mess of content that appears on any mobile device - it does not resemeble the desktop version at all. Also, If you edit the desktop page in the mobile view and change anything to work on mobile, then it completely messes up the desktop page layout, extremely frustrating. To get around this, I will create a duplicate of my new HOME page, and change the URL to http://worksbyshaun.com/mobile. Then I will edit this page so it works only on a mobile device. This way the edits won't mess up my main desktop HOME page version. I am leaving the rest of my website as is, with the classic editor layouts, as these work on mobile devices. It's the new Fluid Engine that completely breaks anything on a mobile device. I need some of the new features present in Fluid Engine just for my new HOME page, hence why this workaround. What custom code would I add to the "Advanced" default (desktop) HOME page section to accomplish this? Something like this....? @media (max-width:768px){http://worksbyshaun/mobile {display:none!important}} Also, I wish to hide this custom mobile HOME page from Google search engines, as it's just a duplicate. Will this cause any indexing issues with my main desktop site and Google search engine? I don't want to mess with my sites main landing page and Google searches. Many thanks for your help. Edited July 15, 2022 by Shaun_mav ilseS 1 Link to comment
tuanphan Posted July 18, 2022 Share Posted July 18, 2022 #1. Add this to Page Header <script type="text/javascript"> if (screen.width <= 767) { document.location = "https://google.com"; } </script> The code will redirect page to new url (you can replace google.com with new mobile page url) when users on mobile. #2. Add to Page Header <meta name="robots" content="noindex" /> Shaun_mav 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Shaun_mav Posted July 19, 2022 Author Share Posted July 19, 2022 Thank you very much Tuaphan for your guidance, know your help has been greatly appreciated. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment