[Resolved] Align button center within column

Home Forums Support Align button center within column

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1239821
    Jacob

    Hi!

    I tried to add a button-within a grid/column that appears to come custom with your theme (or perhaps WordPress core.)

    The button adds fine, however i’m having trouble targeting the CSS class I created with your “Advanced” option for the button. For example, when I look at it with Chrome inspector I cannot find the newly added CSS class. Either that or i’m having some kind of over-rid issue.

    .upgradeButtonTw {
    	text-align: center;
    }

    Thanks for the help!

    #1240370
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

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

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

    Let me know if this helps πŸ™‚

    #1240405
    Jacob

    great thanks! Worked like a charm!

    #1240509
    Leo
    Staff
    Customer Support
    #1538200
    Kristy

    This code works for me. But, as soon as I add a link, it won’t center anymore. Any ideas?

    #1538219
    Elvin
    Staff
    Customer Support

    Hi Kristy,

    As this is solved for the topic starter, can you open up a new topic?

    Opening a new topic lets you use the private information text field to provide your site details. We may need it to get a closer inspection of your site to find out why that’s happening. Thank you.

    A wise man once said:
    "Have you cleared your cache?"

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