• Can anyone tell me how to center the title on a sidebar widget?

    I’ve done searches and tried many different CSS codes given but nothing seems to work. I’m using Impreza theme and want to center the “About Sean Nalewanyj” title on the right https://seannal.com/

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • try this:

    #text-7 h3.widgettitle{text-align; center;}

    Tell me if it is working.

    Thread Starter Sean_N

    (@sean_n)

    Just to be clear, do I add this to style.css?

    Thread Starter Sean_N

    (@sean_n)

    It doesn’t work when I add it there.

    You’ve got a syntax error in your CSS:

    #text-7 h3.widgettitle{text-align; center;}

    should be

    #text-7 h3.widgettitle{text-align: center;}

    Note the colon between “text-align” and “center”.

    Also, be aware that editing your theme’s files directly is not recommended. If you were to update the theme later, to fix bugs or security issues or to add new features, your changes would be lost. Instead, it’s best to use your theme’s built-in custom CSS option, if one exists, or a custom CSS plugin.

    My bad that should be “:” stephencottontail is right.

    Thread Starter Sean_N

    (@sean_n)

    Awesome, it worked, thanks.

    I also added the custom CSS plugin Stephen, thanks.

    Just mark it resolved. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Center Sidebar Widget Title’ is closed to new replies.