Hi,
I would like to use the boxed layout for my site at 1200px and more but not when the screen is smaller.
Site: http://www.intreat.se
I tried using this jQuery for this, both by adding it to a .js file and in the custom js in theme options, but no luck:
Fiddle
$(function(){
$(window).bind(“resize”,function(){
console.log($(this).width())
if($(this).width() <1200){
$(‘#container’).removeClass(‘boxed-layout’)
}
else{
$(‘#container’).addClass(‘boxed-layout’)
}
})
})
I also tried this when having boxed layout from the start and full width.
Any ideas?