Center widget title
-
Hey guys,
I wish to center the title of my widgets.
The ones on the slidebar doesn’t bother me, but the ones on the sidebar and footer would look way better if center.
Also, I wish that the “Follow” Button in the Email widget to be center as well.
The best page example would be that one : https://samueltrepanier10.wordpress.com/biography/I would also like to have a linked title (like the facebook widget) for the Instagram widget, would that be possible ? Or where should I suggest that request ?
Thanks a lot!
Best,
Samuel TrepanierThe blog I need help with is: (visible only to logged in users)
-
Hi Samuel, to center the widget titles on Port, go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.
.widget-title { text-align: center; }I used the web inspector built into my browser to find the relevant CSS. If you are not familiar with the web inspector in your browser, take a look at our support page on How to Find Your Theme’s CSS where you will find some brief screencasts to get you started with it. I find it an invaluable tool when working with CSS.
-
Dear,
Thanks a lot for your quick response, it worked well.
Could you suggest a code to center the content of the widget as well ? As you can now see, the footer widget content (except for instagram) looks a bit wear. In other words, I would like to center the Facebook image and LIKE as well as the text and button on the Email widget.Thanks again.
Best,
Samuel -
Samuel, for the footer widgets, you can center the content with the following.
.footer-box {
text-align: center;
}` -
-
Samuel, The menu after you click on the menu icon isn’t actually a widget, but we can center it with the following.
.menu-main-menu-container ul { text-align: center; } -
Great, worked well. But the Email widget is still not center (content and button). Would you have something to fix that?
Thanks a lot!
Samuel -
Hmmm, the email subscription widget is centered for me in Safari, Chrome and Firefox. Where are you seeing it not centered, and are you logged into your account or logged out? What browser and browser version?
-
In the footer and sidebar yes, but I mean in the slidebar. Sorry for the confusion.
Samuel
-
Ah, now I see, when you click on the menu icon at the top. Seems there is another selector we need to set to center alignment. Add this and I think that takes care of the rest.
.sidebar-box { text-align: center; } -
- The topic ‘Center widget title’ is closed to new replies.