# Widget centering (content of widget) for WordPress theme

**URL:** https://colorlibsupport.com/t/widget-centering-content-of-widget-for-wordpress-theme/6993
**Category:** Dazzling
**Created:** [March 10, 2015, 12:35pm UTC](https://colorlibsupport.com/t/widget-centering-content-of-widget-for-wordpress-theme/6993 "2015-03-10T12:35:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shrikant](https://colorlibsupport.com/user_avatar/colorlibsupport.com/shrikant/32/3819_2.png) [@shrikant](https://colorlibsupport.com/u/shrikant)
#### Post date: [March 10, 2015, 12:35pm UTC](https://colorlibsupport.com/t/widget-centering-content-of-widget-for-wordpress-theme/6993/1 "2015-03-10T12:35:15Z")

</div>

Hey there,

I am using Dazzling theme on my site. Its a great theme. I used Travelify as well previously (Obv I leave URL to colorlib for theme credit on about page).

Under Dazzling theme, homepage widgets, I want to align center the content of widget (it might be picture or text).

I searched through forum and got solution to align widget title. I am looking for content or body of widget to align.

Thanks in advance.

-Shrikant

---

<div class="post-metadata">

### Author: ![aigars-silkalns](https://colorlibsupport.com/user_avatar/colorlibsupport.com/aigars-silkalns/32/13469_2.png) [@aigars-silkalns](https://colorlibsupport.com/u/aigars-silkalns)
#### Post date: [March 11, 2015, 2:44pm UTC](https://colorlibsupport.com/t/widget-centering-content-of-widget-for-wordpress-theme/6993/2 "2015-03-11T14:44:11Z")

</div>

Wrap your widget content width tags like this:

`<p style="text-align: center;">Your text or code goes here</p>`

This will make sure to center image, text or other content types that you might add there.

If you are using other than text widgets, please post your website URL and I will write a Custom CSS for that.

---

<div class="post-metadata">

### Author: ![shrikant](https://colorlibsupport.com/user_avatar/colorlibsupport.com/shrikant/32/3819_2.png) [@shrikant](https://colorlibsupport.com/u/shrikant)
#### Post date: [March 12, 2015, 6:12am UTC](https://colorlibsupport.com/t/widget-centering-content-of-widget-for-wordpress-theme/6993/3 "2015-03-12T06:12:05Z")

</div>

Hey Aigars,

Thanks for reply.

Yes, I already saw this solution gave by you in another thread of this forum. I was not using text widget hence I posted new thread.

I was using some featured post widget and wanted to center its thumbnail, excerpt of post within widget. Anyway now I am using another widget with its own custom CSS edit functionality. Played around code a bit and got it working the way I wanted.

Thank you for the help of custom CSS offered and for this beautiful Dazzling theme!!

-Shrikant
