[Support request] How to center the buttons in Posts

Home Forums Support [Support request] How to center the buttons in Posts

Home Forums Support How to center the buttons in Posts

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1227195
    AMIT

    Hi Guys the buttons that you have provided in layout elements are only displaying left. Can you please tell me how to center them ?

    #1227510
    Leo
    Staff
    Customer Support

    Hi there,

    Can you guide me to the button you are referring to?

    There are no buttons built-in Layout Elements.

    Let me know πŸ™‚

    #1227574
    AMIT

    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

    https://hostinghindi.in/what-is-web-hosting-in-hindi/

    #1227649
    Leo
    Staff
    Customer Support

    Try this CSS:

    .entry-content .wp-block-buttons {
        text-align: center;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1227698
    AMIT

    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 πŸ™‚

    #1227703
    Leo
    Staff
    Customer Support

    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 πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.