- This topic has 9 replies, 3 voices, and was last updated 4 years, 7 months ago by
Ying.
-
AuthorPosts
-
August 11, 2021 at 7:55 am #1892214
Christina
Hi guys, I’m new to creating Elements and I’m trying to create an element that showcases the best content relevant to a particular category.
I’m running into some spacing issues though with regards to a 3 column set up filled with buttons. I’m talking about the Star Wars quotes section seen here (starting underneath the “Click to read our top 100 Star Wars quotes) button): https://geektrippers.com/category/star-wars/
Especially on mobile, it seems like the buttons in the 3 columns are shifted to the right for some reason, and not centered as I would like. I’ve spent AGES trying to figure out the issue but nothing seems to fix it. Could you take a look and let me know if I’m missing something obvious? Thanks so much!
August 11, 2021 at 8:41 am #1892307Leo
StaffCustomer SupportHi Christina,
You are using the buttons block from WP core currently.
Can you try using the buttons block from GB first?
https://docs.generateblocks.com/article/buttons-overview/Then maybe this option would work for you:
https://docs.generateblocks.com/article/buttons-overview/#fill-horizontal-spaceAugust 11, 2021 at 9:43 am #1892360Christina
Hi Leo, thanks for the reply! I swapped over to the GB buttons but they’re still *slightly* off center… only really noticeable on Mobile view.
August 11, 2021 at 9:45 am #1892363Leo
StaffCustomer SupportI’m still seeing the core blocks and not GB blocks:
https://www.screencast.com/t/cTDLkoMi5hLI’m guessing it’s a caching issue so please clear and disable your caching plugin while we are trying to help.
If you use the buttons block from GB then you shouldn’t need to use the columns block.
August 11, 2021 at 10:06 am #1892382Christina
Hi Leo, so I’ve cleared the cache now but I’m still seeing the slight off-centeredness in the buttons, even without columns. Also, if using GB without columns, is there a way to specify how many buttons will appear per row? At the moment they’re all clustered together on Desktop and I’d like to specify how many go in each row.
August 11, 2021 at 10:42 am #1892415Ying
StaffCustomer Supportlso, if using GB without columns, is there a way to specify how many buttons will appear per row?
Yes, it depends on how many
Buttonyou added to theButtonsblock. Currently, you put all theButtonin one Buttons block.Try separate the buttons into different
Buttonsblock.Let me know 🙂
August 11, 2021 at 11:40 am #1892472Christina
Hi Ying, thanks SO much! Okay it looks much better now. The final problem that remains is still that the buttons are off-center in mobile view, but only slightly. I’m not sure what’s causing this. Would you be able to take a look?
August 11, 2021 at 11:52 am #1892479Ying
StaffCustomer SupportCan you try to remove the left and right margin for the button on mobile?
Let me know how it works 🙂
August 11, 2021 at 1:08 pm #1892546Christina
Hi Ying, removing just the left margin weirdly did the trick. Thank you so much for your help!!
August 11, 2021 at 1:57 pm #1892600Ying
StaffCustomer SupportYou are welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.