Resize Main Content Sidebar
-
Hi,
how is it possible to resize the main part and the sidebar.
i would like to have a smaller sidebar. thats no problem for me i changed the css to the following:.site-main .sidebar-container { display: block; float: right; width: 13%; z-index: 1; position: relative; }but how is it possible, that the main part can be resized? now i have a huge gap between the main-content and the sidebar on the left.
please help me
-
Hey there headshot2006,
How are you doing today?
Your content area probably has defined width as well which is preventing it from expanding further to occupy space that is left when you reduced width of your sidebar which should generally be possible to change with CSS.
Would you mind posting link to your site where I can see this and I’ll be happy to help you to change that.
Best regards,
BojanHey again,
Thanks for the link, I’ve checked your site and as I mentioned above, your content also has width defined so it remains the same size even though you reduce sidebar width.
To change that please 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:
http://wordpress.org/plugins/simple-custom-css
.sidebar .site-content { width: 75%; }Increase the numeric value to what ever suits you the most π
Cheers,
Bojanhey thanks for your replay.
in my css is still the following code:
.sidebar .site-content { display: block; float: left; width: 80%; }i can increase the value, but nothing happen
now i used the plugin and now it works
thanks for your helpGlad I could help π
Cheers,
BojanCould I ask you, where you change the code that your slider in front page is not so high? Thanks
hi,
in your css file you have to following code:
.ibanner .da-slider { z-index: 0; position: relative; text-align: center; max-height: 300px; }the value of the max-height is for the high of the slider
Hey guys,
Just want to mention this, I don’t know how many times I wrote this one π
Please do not edit theme core files as all changes you make there will be lost once you update the theme.
You can either use child theme as I mentioned above or if you don’t want to create one use plugin such as http://wordpress.org/plugins/simple-custom-css which allows you to add custom CSS to in your admin.
Best regards,
BojanThanks you both for so quick answer. I would try.
Happy to help π
Cheers,
BojanI try with Simple Custom CSS and works like I want. Thanks again
The topic ‘Resize Main Content Sidebar’ is closed to new replies.
