Hi team,
I would like to do two changes in my Focus theme:
1/ enlarge sidebar to 300 width to be able to put AdSense ads.
2/ enlarge the rest of the theme part (eg. home content, footer) respectively to maintain the actual proportions between home content and sidebar.
Could you please explain me how I could do that? And one more question, how these change will influence the look of the theme in movile devices and tablet?
Is the idea of maintaining proportions okay or maybe you have other sugguestion of the size of home content?
Thank you in advance for your support!
regards,
anja
1. you log in Dashboard > Appearance > Theme > customize > General Settings > add code folowing
“DW Focus header script”
see the screenshot: http://imgur.com/DuAKxNb “
<style>
@media (min-width: 1110px) {
/* Main */
#main > .container > .row {
background-position: 760px 0;
}
#primary {
width: 700px;
}
.news-slider .carousel {
width: 480px;
}
.news-slider .carousel-inner,
.news-slider .carousel .item,
.news-slider .carousel .carousel-inner .hentry {
height: 100%;
}
.news-slider .carousel-list {
width: 219px;
}
#secondary {
width: 300px;
}
#secondary .entry-thumbnail img {
width: 300px;
}
.single .site-content > .post .entry-content {
max-width: 530px;
}
}
</style>
“DW Focus footer script”
see the screenshot: http://imgur.com/amR3OU8 “
<script>
var height = jQuery('.news-slider').height();
jQuery('.news-slider .carousel').css('height', height);
</script>
– Dashboard > setting > Media : http://imgur.com/pLIg49O
2. The downloaded package of our theme is the same for everyone.
These code will not affect to the layout displayed on mobile and tablet, on another hand, it will not affect the responsive layout.
Of course, if there is any bug occurred once you add the code under our instruction, we will take responsibility and fix the site for you (without any charge).
Hope this helps!
Regards,
Dominic
Hi Dominic,
Thank you very much for your help and such a fast answer!
The sidebar is bigger now, it has 300 px, as I asked for. Thank you again for code, and such a really nice explanation.
Dominic, could you please help me to increase the size of the rest of the theme? How I can increase the home content aprox. 100-150 px more? The size of the sidebar is okay now, but the home content look small now, next to new sidebar.
Could you please give me a helping hand with that?
thank you in advnace for everything!
Hi Dominic,
I found the above guide to be very useful, but I ran into a problem when I tried to switch the side bar to the left hand side. This is how it turned out http://i.imgur.com/9waGeE3.png is there a different code needed for that? Any help would be great.
Hello Anja !
You can send for me a screenshot of where you want to edit.
Regards,
Dominic
Hi Dominic,
Could you please send me the resolution to increase home content – as i am looking for the soultion to increase the size at side bar and main workarea as well
Gj
you log in Dashboard > Appearance > Theme > customize > General Settings > add code folowing
“DW Focus header script”
see the screenshot: http://imgur.com/DuAKxNb “
<style>
@media (min-width: 1110px) {
/* Main */
#main > .container > .row {
background-position: 760px 0;
}
#primary {
width: 700px;
}
.news-slider .carousel {
width: 480px;
}
.news-slider .carousel-inner,
.news-slider .carousel .item,
.news-slider .carousel .carousel-inner .hentry {
height: 100%;
}
.news-slider .carousel-list {
width: 219px;
}
#secondary {
width: 300px;
}
#secondary .entry-thumbnail img {
width: 300px;
}
.single .site-content > .post .entry-content {
max-width: 530px;
}
}
</style>
“DW Focus footer script”
see the screenshot: http://imgur.com/amR3OU8 ”
<script><br />
var height = jQuery('.news-slider').height();<br />
jQuery('.news-slider .carousel').css('height', height);<br />
</script>
REgards,
Dominic
Hi Dominic,
Sorry to be replying to an old post, but I actually would love to have a sidebar width of just 250 pixels. I’ve tried to modify the code you’ve supplied but have been unsuccessful.
Could you please assist me in attaining the correct code?
Thanks,
Ashley
You can add use the following code:
Hope this helps !
Please login or Register to submit your answer