Centering a button in sidebar

Support Area Forums Umami Centering a button in sidebar

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://nunosbistro.com
  • Author
    Posts
  • #31896
    Vince Landreth
    Participant

    Hello,

    I am trying to put the opentable button in the sidebar of the Umami theme by adding the html into a text widget. It works fine, except that I can’t center it in the sidebar. Is there an easy fix for this? (I have tried adding to the custom CSS section in the theme options but haven’t been able to get that to make any difference.)

    #31898
    Bill Robbins
    Moderator

    Hello Vince,

    I believe we can do that. It looks like the button has some margins set on it. You can override them this way:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      div.OTButton {
      	margin: 0 auto;
      }
      
    3. Update your settings.

    Hopefully that will center it for you. Let me know if you run into any trouble.

    Bill

    #31902
    Vince Landreth
    Participant

    Nice- looks perfect! Thanks!

    #31904
    Bill Robbins
    Moderator

    Glad that did the trick. If you need anything else, let me know.

    Have a great week,
    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Centering a button in sidebar’ is closed to new replies.