Basic Margin and Sidebar adjustment
-
I’m trying to make the content be more centered and make the sidebar wider toward he left so my widgets fit. ( Have no idea how to edit widget ) I have created a BP child theme and this is BP Default theme. Where can I find the code I need to copy and how can I make this change?
-
@smitch-l this is a CSS only issue. In other words, you’ll just need to add the revised widths in your child theme’s style.css file. The elements below control the width of the sidebar and content area:
div#content .padder {
margin-right: 225px;
}
div#sidebar {
margin-left: -226px;
width: 224px;
}If, for example, you want to increase sidebar area to 350px, you add the following to your child theme’s style.css file
div#content .padder {
margin-right: 351px !important;
}
div#sidebar {
margin-left: -352px !important;
width: 350px;
}Thanks, mercime. If the styles.css is pointed to functions.php, would this just be added there?
If the styles.css is pointed to functions.php, would this just be added there?
Not sure what you mean. You add the style changes in your child theme’s style.css file.
Thanks. So, there must be a child theme, just to confirm? The main theme doesn’t have any css in the styles.css. It points to function.php i think. Just want to clarify because even though in my limited understanding of child themes being created so code isn’t wiped away, I am still working with the main theme. Most css appears to be in the function or functions.php file. Do you see why I’m asking? I’m trying to find these settings just to adjust them.
thanks as always, mercime! (btw, Have u heard of the band, “MercyMe?”)
- The topic ‘Basic Margin and Sidebar adjustment’ is closed to new replies.