- This topic has 7 replies, 3 voices, and was last updated 5 months, 3 weeks ago by David.
July 12, 2020 at 5:52 pm #1361357moy
I have a confusion…
Is it possible to synchronise generatepress padding settings and generateblocks padding settings?
Yesterday I was unable to optimise my pages for the mobile screen, then I discovered that generatepress padding settings and generateblocks padding settings were working separately. To optimize my website I had to start from scratch to make my website optimize for both mobile and desktop. Is it possible to synchronize generatepress and generatebloks settings so that I don’t have to set everything separately?
I was using multiple containers in a single container.
When I was using multiple one containers, I discovered that padding for outer and inner container CREATED MORE GAP between the mobile screen border and the content, I know it is possible to set padding settings separately for the inner and outer container. It would be greater if I could set the same settings on the inner and outer container and have a mobile-optimized view without having to set everything separately. Is it possible with “one container layout”?July 13, 2020 at 9:17 am #1362201TomLead DeveloperLead Developer
GeneratePress and GenerateBlocks are two separate entities, so it will be difficult to synchronize them like that.
We can tell a GenerateBlocks container to use the same content padding values that are set within GeneratePress, is that what you’re hoping for?
Let me know 🙂July 25, 2020 at 11:29 pm #1376479moy
sorry for the late reply, I just like to tell you my personal opinion. haha…
suppose, the container padding is set to 40 in generatepress. then you used generateblocks grid to create “6” containers (horizontally) within 1 container. Guess what will happen?
Each container of all 6 containers will have padding 40 in right and left side. And all the container will look like symmetric vertical rod in one row.
I made this dumb mistake and it took me almost a day to figure out the mistake. Then I calculate the ratio, each padding should have & set the padding for each container separately.
I like generatepress a lot and It would be great if I could set the ratio of the gap between containers in the generate blocks grid and set it up with generatepress.July 26, 2020 at 9:00 am #1377007TomLead DeveloperLead Developer
It’s possible to change the default padding of the Container blocks using a filter. We’ll also be adding pro features to change the defaults as well.
I’m not sure about setting up gap ratios, but setting the defaults is very easy: https://wordpress.org/support/topic/default-margins-for-containers/#post-13025697July 27, 2020 at 11:50 pm #1378794moy
Using a filter? sounds interesting. How does it work? Will it create more HTTP request? I like to increase speed as much as possible.
You’ll be adding pro features!!!!!! I can’t wait for the official release.July 28, 2020 at 2:25 am #1378939DavidStaffCustomer Support
Tom provide the PHP snippet you need to filter the padding here:
This is a server side function, it will not create additional HTTP Requests.July 29, 2020 at 12:45 am #1380118moy
okay got it. thank you very much for your assistanceJuly 29, 2020 at 3:43 am #1380293
- You must be logged in to reply to this topic.