Centering all Widget Headings
-
Hi, I’m really new to WordPress. I’ve done my new site but all the text is aligned left on all the widgets. I have managed to work out how to align the image (used html) but not the actual widget title.
Would really appreciate it if anyone can help me in simple layman terms what the html code should be. Haven’t got my head around CSS.
Thanks
The blog I need help with is: (visible only to logged in users)
-
-
Thanks for your quick reply. I have paid for the Custom Design option and it does have CSS coding too. Not really au-fait with CSS.
-
Me neither. I will flag this thread to be moved to the CSS forum where someone will be able to help you with the code.
-
-
Hi there,
Could you try adding the following CSS code to the Appearance → Custom Design → CSS panel?
.widgettitle { text-align: center; }To center the content of your Text widgets too, you can use the following CSS instead the aforementioned one:
.textwidget { text-align: center; }With this CSS, you will not have to manually center all images in your Text widgets anymore.
Hope it helps, and let me know if there’s anything else you want centered!
-
Thanks that’s great. Used both and all the images & text centered okay except the calendar for some reason. Pretty easy so thank you!
-
Just for reference, if you use the Text Widget, you can manually add information to your site with some basic HTML and CSS, which could include the classes for alignment in all WordPress Themes for alignright, alignleft, and aligncenter.
See this article on text widgets for examples.
-
- The topic ‘Centering all Widget Headings’ is closed to new replies.