Jump to content
Sign in to follow this  
jeanpierrebiasyahoofr

Sidebar border

Recommended Posts

jeanpierrebiasyahoofr

Hi there. I was trying to customize my theme adding a border around my sidebar. so I added this code I've found on this forum

body #sidebar-wrap{background:#ffffff; border: 1px double #777777;}
	body .one-sidebar-right #pagelines_content #sidebar-wrap,

it actually worked but now my sidebar is no longer on the side of the posts, the sidebar is still on the right but starts at the bottom, at the end of posts area next to the "previous entries" link. here's a screenshot: 2njvcqv.jpg Does anyone know what line of code I can add to solve this problem? Thanks everyone and excuse my english !

Share this post


Link to post
Share on other sites
Kate

Hi Jean Pierre - By adding the border, you increased the width or the sidebar by 2px. So, you would have to decrease the width that's currently set for the sidebar, either via the draggable layout feature in settings, or via CSS.

Share this post


Link to post
Share on other sites
jeanpierrebiasyahoofr

Thanks for your answer Kate. I changed the width of sidebar via the draggable layout feature in settings like you said but it did not resolve the problem, the sidebar is still at the bottom. I'd like to know how to do it via CSS like you said on the second part of your answer. Thanks again.

Share this post


Link to post
Share on other sites
hajir

hey jean pierre delete your own codes and add these, I wanted the same thing and had the same problem and people of the forum helped me. body #sidebar-wrap{background:#ffffff; border: 1px double #777777;} body .one-sidebar-right #pagelines_content #sidebar-wrap, body .one-sidebar-right #buddypress-page #sidebar-wrap {width: 300px;} body .one-sidebar-right #pagelines_content #sidebar1, body .one-sidebar-right #buddypress-page #sidebar1 {width: 300px;} these codes add borders to the widget boxes and also fix the sizing problem.

Share this post


Link to post
Share on other sites
jeanpierrebiasyahoofr

Tank you very much, both of you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×