- This topic has 13 replies, 2 voices, and was last updated 4 years, 4 months ago by Leo.
-
AuthorPosts
-
November 25, 2019 at 6:03 am #1076052Gilles
Hello
Since the last update, the header of the site appears on the mobile version of my site (see here : https://i.imgur.com/NPiTcAe.png) even when the element is deactivated … It’s good on a computer as you can see here (https://i.imgur.com/Rdo7fTB.jpg)
I specify that I do not want to disable the header on the entire site, but only on certain pages (sales pages and private area).
Thanks
GillesNovember 25, 2019 at 8:16 am #1076498LeoStaffCustomer SupportHi there,
How are you disabling the header on those pages?
Using the disable element metabox or Elements?
Can you make sure the header is selected to be disabled on those pages (not just primary navigation)?
Let me know π
November 25, 2019 at 8:27 am #1076511GillesHi Leo
Yes of course. I said “even when the element is desactivated” (see here : https://i.imgur.com/X2DCGHU.jpg)…and it’s ok with a computer…
So there’s a problem only on mobile deviceNovember 25, 2019 at 8:34 am #1076518LeoStaffCustomer SupportCan you guide me to the pages that aren’t working?
Let me know π
November 25, 2019 at 8:37 am #1076524GillesFor exemple : https://www.un-jardin-bio.com/ebooks/mon-potager-au-naturel-mobile/
But it’s the same with all pages where I deactivated header…November 25, 2019 at 8:39 am #1076526LeoStaffCustomer SupportCan you clear and disable LiteSpeed Cache and let me have a look?
Thanks π
November 25, 2019 at 8:43 am #1076538GillesOk it’s done
November 25, 2019 at 8:53 am #1076562LeoStaffCustomer SupportAh ok that’s a bug from the recent update.
Are you able to link me to all the pages that are having this problem?
Then we can use CSS to fix this until the patched version is released.
Sorry about that and let me know π
November 25, 2019 at 9:01 am #1076568GillesThere are dozens of pages (some of which are reserved for my clients … you will not have access to them).
But here are some accessible:
https://www.un-jardin-bio.com/formations/prolongation-coaching-1-an-mobile/
https://www.un-jardin-bio.com/formations/coaching-1-an-pdv-mobile/
https://www.un-jardin-bio.com/formations/consoude-mobile/
Can I reactivate LiteSpeed ?November 25, 2019 at 9:30 am #1076605LeoStaffCustomer SupportHere is the CSS you need for the 3 pages above:
@media (max-width: 768px) { body.page-id-52462 #mobile-header, body.page-id-52441 #mobile-header, body.page-id-49075 #mobile-header { display: none !important; } }
Adding CSS: https://docs.generatepress.com/article/adding-css/
As for other pages, you will need to identify the
page-id-xxxx
and keep adding on to the code:
https://www.competethemes.com/blog/find-page-id/Let me know if you need more info and sorry for the inconvenience.
I’ve reported this bug and we will get it fixed asap.
Thanks π
November 25, 2019 at 9:33 am #1076612GillesOk
Thanks
Best regards
GillesNovember 25, 2019 at 10:03 am #1076669LeoStaffCustomer SupportHey we actually have a workaround solution for now.
If you add this PHP snippet:
https://generatepress.com/forums/topic/gp-1-9-0-update/#post-1069229Adding PHP: https://docs.generatepress.com/article/adding-php/
Then you shouldn’t need the CSS above.
Let me know π
November 25, 2019 at 10:35 am #1076714GillesThanks
It works well !
Regards
GillesNovember 25, 2019 at 10:41 am #1076729LeoStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.