Archived topic
How to center the buttons in Posts
5 replies · Started by AMIT on April 5, 2020
Hi Guys the buttons that you have provided in layout elements are only displaying left. Can you please tell me how to center them ?
Hi there,
Can you guide me to the button you are referring to?
There are no buttons built-in Layout Elements.
Let me know :)
I am talking about the buttons that we use in posts. You can check the below link for the same. In this post i have used 5 buttons but i am not able to shift them to the center as it is not allowing <center> tag. Please help me ASAP
Try this CSS:
.entry-content .wp-block-buttons {
text-align: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Thank you very much :) But, i think you should provide button alignment feature in next update. It saves us from using third party plugins for buttons. And, i believe the lesser the plugin the better it is for a website. Anyways thanks again :)
That is a core block from WordPress so we cannot add specific options for it.
You can use Additional CSS field in the customizer to add the CSS and avoid using Simple CSS.
Let me know if this helps :)