How To Center a Title in the Text Widget in WordPress

“Now come on, how hard can this be?” After searching the web for 2 hours now I finally got my answer and you would think it would be quick and easy to find. Oh, sure it is for you now… lol… Since I am writing this :-)

The code for Centering a title when using the Text Widget in WordPress is extremely easy if you use Arras or any theme with a user.css. What this does is overwrite any instructions in the theme. So, how does this make it easier, well all you have to do in Arras is edit the user.css with the following code:

.widgettitle { text-align:center; }

See how easy that is, piece of cake.  Now let say we didn’t have this nifty user.css, well then we would have to open some sort of file manager at our hosting site and either download the default.css, edit it, and then upload it or, depending on your provider, right click and select an editor.

For example, I use Hostgator.  I went to my cpanel and opened File Manager.  Then I had to navigate to my default.css.  To do this, I followed the following path: public_html folder, then wp-content, then themes, then arras, then css, and finally selected styles which contained my default.css. I right clicked on it and selected code edit.  I scrolled down until I found .widgettitle and added the following code

text-align:center;

So there you have it, pretty easy if you have a user.css, if not, well it may take a little longer.

Best of luck,

JD

To share this article with others, just click on your social media below:
  • Print
  • Twitter
  • Digg
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Tumblr
  • LinkedIn
  • Sphinn
  • Mixx
  • Google Bookmarks
  • Blogplay

Subscribe Today

Enter Your Email to Keep Up-to-Date with the Latest Blog Posts

Delivered by FeedBurner

Donations

If you found this article or tips helpful and would like to say thank you in the form of a donation or perhaps buy me a cup of coffee or a beer, then please use the form below and Thank you so very much.

Please Select a Beverage Below

About JD

John Howard has owned 13 companies, had a Real Estate license, been an Mortgage Loan Officer, been extensively involved in Day Trading, Commodities, Bought and Sold Tax Property, Accomplished Tax Auditor, Accountant, Written numerous computer programs, Written Screen Plays & Short Films, been Director on two major production short films, and has been semi-retired since 2007, concentrating on personal investing and writing.