lsalex Posted November 2, 2022 Posted November 2, 2022 (edited) Hello. I am using AppMySite.com to turn some of my webpages into a mobile app. ("REAP Advisor" in the iOS App Store at the moment.) AppMySite gave me the option to "Remove header" from my site when using the app. I want to do this, but it's not working due to the header being named some class other than "header" within Squarespace's code. Since I can't fix this on AppMySite's end, can you all help me (maybe with code injection?) to tell Squarespace to NOT show the header or footer when the page is being loaded by the AppMySite app? Here's what the AppMySite people said: Quote We've checked this and it looks like this issue is occurring because the header's class in the HTML of your website is: "Mobile-bar Mobile-bar--top" and not header. Since the HTML class of this element on your website doesn't mention header it's not being automatically picked up to be removed from the app. You can check this if you right click on your website and click "Inspect element" by clicking the phone icon (the icon left of the "Elements" tab) and then selecting the header. Now, we see that you already tried to use the Hide HTML element by class feature but you haven't inputted the correct class here; you need to enter "Mobile-bar Mobile-bar--top" to hide the header. Would it go something as simple this? can anyone help? Thank you! <script> if ( ***SITE IS BEING OPENED IN APPMYSITE APP***) { ***DON'T DISPLAY HEADER or FOOTER***; } </script> Edited November 2, 2022 by lsalex duplicate photos
tuanphan Posted November 6, 2022 Posted November 6, 2022 Hi, You want to find correct mobile header class name? If you share link to your site, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment