-
AuthorPosts
-
December 6, 2018 at 1:21 pm #1041634
Hi Guys,
How would I hide the header and footer for mobile devices (990) on a single page?
Many Thanks
December 6, 2018 at 1:36 pm #1041643Sorry can I also remove the right sidebar as well on the same page.
December 6, 2018 at 4:11 pm #1041709first of all – do you like to hide it on mobile devices or for small screens too?
December 6, 2018 at 4:20 pm #1041713Mobile devices please
December 6, 2018 at 4:51 pm #1041740you can use in that case only css because Enfold uses for mobile devices a class on html : avia_mobile
can you please try this in quick css and change the page id to yours wanted.
Think of refreshing cache and refresh merged files on Enfold.avia_mobile .page-id-33662 #header, .avia_mobile .page-id-33662 #footer, .avia_mobile .page-id-33662 #socket { display: none; } .avia_mobile #top.page-id-33662 #wrap_all #main { padding-top: 0 !important; } .avia_mobile .page-id-33662 .sidebar { visibility: hidden; border-left: none !important; } .avia_mobile .page-id-33662 #main .content { border-right: none !important; width: 100%; }
December 6, 2018 at 4:56 pm #1041741Guenni – thanks for that BUT I just realised it’s not for a single page but for the individual post pages..?
December 6, 2018 at 4:56 pm #1041742So it’s for every post
December 6, 2018 at 5:33 pm #1041756.avia_mobile .single-post #header, .avia_mobile .single-post #footer, .avia_mobile .single-post #socket { display: none; } .avia_mobile #top.single-post #wrap_all #main { padding-top: 0 !important; } .avia_mobile .single-post .sidebar { visibility: hidden; border-left: none !important; } .avia_mobile .single-post #main .content { border-right: none !important; width: 100%; }
December 6, 2018 at 5:35 pm #1041758if it is one post only look to source code – the pages/post goes as class to the body (#top) tag.
f.e.: .postid-33645 etcDecember 6, 2018 at 5:45 pm #1041762I put that in Quick CSS and id did not work?
December 6, 2018 at 5:56 pm #1041767and you look to your site on a mobile device?
so – best will be to see your site.
If you could not make it public – post it in private area – and wait til mods are here.December 6, 2018 at 6:05 pm #1041769Hmmmm – Let me check cache?
December 6, 2018 at 6:07 pm #1041771you can simulate on some browsers the mobile devices. F.e. Firefox with alt+cmd+M and then choose a device you like to look for. Refresh Browserwindow then and look.
December 6, 2018 at 6:15 pm #1041772T h a n k Y o u ! Guenni – it’s working now!!!!
December 7, 2018 at 5:32 am #1041914Hi nasman22,
Great, glad you got it working and thanks to @guenni007 for helping out :-)
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.