- This topic has 5 replies, 3 voices, and was last updated 2 years, 5 months ago by Elvin.
-
AuthorPosts
-
November 23, 2021 at 3:32 pm #2018700Martin
I included a screen share of the issue I’m trying to fix.
The tablet header I’m trying to design (using GeneratePress Block Element type Hook – inside_mobile_header : element name Mobile Header licensed ) will not allow me to use all the space available.
I am using GenerateBlocks Container / Grid and Headers:Grid
Container
H Headline
H Headline
Container
H HeadlineI can’t seem to make it extend to the right so the phone number in the second grid column does not wrap?
November 23, 2021 at 3:41 pm #2018712YingStaffCustomer SupportTry add this CSS, so we set its width to the full width minus the width of the menu toggle + its padding :
.gb-container.gb-container-ab948d2c { width: calc(100% - 54px); }
Let me know if this helps π
November 23, 2021 at 4:07 pm #2018735MartinYes almost. The whole grid should be left justified so there is no space on left.
https://share.getcloudapp.com/jkuEpw69Then there seems to be a problem with the @media css you gave me earlier between 1025 and 1035 pixels?
https://share.getcloudapp.com/4guP8B8gThe other blocks with hide-on-tablet or hide-on-mobile should not be visible?
November 23, 2021 at 5:57 pm #2018811ElvinStaffCustomer SupportHi Martin,
Yes almost. The whole grid should be left justified so there is no space on left.
https://share.getcloudapp.com/jkuEpw69You can delete the empty column on the left side so it doesn’t act as an extra space on the left. π
Then there seems to be a problem with the @media css you gave me earlier between 1025 and 1035 pixels?
https://share.getcloudapp.com/4guP8B8gIt’s an issue with the layout itself. If you wish for an inline display on mobile header, you can include the contact details on the block element that is hooked in on the mobile header.
You then remove it the Container block with the
hide-on-desktop hide-on-tablet
class.November 23, 2021 at 7:24 pm #2018860MartinSorry Elvin that wasn’t it, but I figured it out:
1. There was no empty column to be deleted (it is a 2 column container) but I changed the container holding the grid to Full width and that solved the problem of taking up all the space2. the @media css I think had an error:
@media (min-width: 1025px) and (max-width: 1035px) { .gb-container.hide-on-desktop { display: block !important; } }
If I change “display: block !important;” to “display: none !important;” it allows the container I want to hide when I assign it the “hide-on-desktop hide-on-tablet” classes
I’m happy with my Block Element Hook inside_mobile_header now. Thanks.
November 24, 2021 at 4:06 pm #2020582ElvinStaffCustomer SupportNo problem. I believe you’ve fully sorted it out? Let us know if you need further help. π
-
AuthorPosts
- You must be logged in to reply to this topic.