Centering sidebar content
-
Hi and thanks for this awesome theme!
Is there a way to center the content of the sidebar widget (not the title)?
Or, is there a way to change the sidebar width?
Rgds, Karin
-
Hi again!
I found a Jetpack widget where I was able to center the content (which is a picture), so that one is solved. But I’m still interested in changning the sidebar width 🙂
Hey there Karin,
Hope you’re well today!
This could be done with some custom CSS. Try adding the following CSS code in the style.css file of your child theme or add it in your site using the following plugin if your theme doesn’t have custom CSS tab.
http://wordpress.org/plugins/simple-custom-css
.widget-area { width: 360px; } .content-area { width: 750px; }Note that these are the original values of the sidebar and content area. You can change the width by changing the numeric value.
Hope this helps 🙂
Best regards,
BojanWow, that was exactly the information I needed, thank you so much for the quick answer 🙂
Glad I could help 🙂
Cheers,
BojanOops, when I changed the values the desktop view is great, but instead it messed up in the mobile view (so now I’ve switched back again), is there a work around?
Thanks! /Karin
You could apply the code Bojan gave you only on widths above 1199px. Something like this:
@media only screen and (min-width: 1199px) { .widget-area { width: 360px; } .content-area { width: 750px; } }Vladff, you’re the best, that worked very well. Thanks for your superb support!
The topic ‘Centering sidebar content’ is closed to new replies.
