Archived topic
Unable to Center Button in blog post
8 replies · Started by Aaron on August 26, 2022
I have a blog post, yet I'm unable to get a button within the post to be centered. When I'm editing the blog post, the button appears to be fine and everything appears centered.
But then when I look at the live blog post, the button is aligned on the left. I've been fiddling with it for a while and just can't seem to figure out why it's not centering. Any help?
Hi there,
Can you try clearing and disabling the LiteSpeed cache first?
Let me know :)
Ok, I went ahead and did so!
Hmm that's WP's buttons block and I'm not too sure why it isn't working.
Can you try GB's buttons block instead since you are already using GB elsewhere?
https://docs.generateblocks.com/article/buttons-overview/
The alignment option definitely works in GB :)
Ok, I was able to add the button that way. Is there anyway to change the shape of the button?
Yes of course:
https://docs.generateblocks.com/article/buttons-overview/#button
GB's buttons block offers much more options than the core buttons block.
Please take a look at the documentation page.
Let me know if this helps :)
Yeah, I saw and read that but I didn't find the ability to round the corners like the button had been previously. That's what I was looking to do.
Ah, border radius. There it is.
Glad to hear :)