- This topic has 7 replies, 3 voices, and was last updated 2 years, 11 months ago by Elvin.
-
AuthorPosts
-
November 5, 2019 at 8:39 pm #1054436Kim
Hi there, I’ve tried to add a different site header for mobile and for desktop for our Woocommerce main shop page. To achieve that I’ve created a header with the class “hide-on-mobile” and another one with the class “hide on desktop”. The first one works fine (not showing up on mobile view). The second one is not displayed (whether on tablet nor on mobile) and “crashes” the whole header on both mobile views.
So I would like to know if it is generally possible to have a different page header for mobile and desktop or if I am doing something wrong?
The site is under development at the moment. If needed I can provide you with some admin credentials.
Many thanks!
November 6, 2019 at 3:10 am #1054624DavidStaffCustomer SupportHi there,
are you using the Header Element ?
You cannot have more then one assigned to the same location. Whichever one you published first will be displayed, subsequent ones will not.November 6, 2019 at 7:20 pm #1055458KimHi David, many thanks. That made it clear! I will solve it otherwise.
November 7, 2019 at 1:44 am #1055602DavidStaffCustomer SupportYou’re welcome
May 3, 2021 at 9:47 pm #1762922MiraHi there,
I have the same problem like Kim.
Could you tell me, how I can fix this problem? How can I implement two different header for mobile and desktop for the front-page?
May 4, 2021 at 2:36 am #1763282DavidStaffCustomer SupportHi there,
you can’t create multiple Header Elements but you can use the Block Element in GPP 2.0 to create a Page Hero.
https://docs.generatepress.com/article/block-element-page-hero/
This will allow you to add multiple Page Heros or you can create a Desktop Hero and Mobile Hero in the same element.
Simply select the Container Blocks you want to show / hide for different devices and in the Advanced > Additional CSS Class(es) you can use a hide-on-* mobile class:https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes
May 4, 2021 at 10:12 pm #1764820MiraHi David,
thank you for you answer.
I now got the Plugin “Generate Blocks” and that helped me a lot.
Do you know how I can install GPP 2.0? I have still the version 1.12.2 of GP Premium and I don’t see an option to update the plugin.
May 4, 2021 at 11:59 pm #1764951ElvinStaffCustomer SupportHi Mira,
Do you know how I can install GPP 2.0? I have still the version 1.12.2 of GP Premium and I don’t see an option to update the plugin.
You can do a manual update by downloading the GPP 2.0.2 file on your Account > Download page.
https://generatepress.com/accountYou then upload the plugin similar to uploading any other plugins.
https://wordpress.org/support/article/managing-plugins/#manual-upload-via-wordpress-admin -
AuthorPosts
- You must be logged in to reply to this topic.