HI,
Urgent
I followed the suggestion in thread #285801 and now it places the side bar on the top, it pushes down everything, such as the header image. It now looks terrible. Any suggestions or css code to fix this please.
Thanks,
Paul
This is the code I have added. It seems to be adding 2 lots of the sidebars. One correctly but one not.
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() <= 480){
jQuery("aside").prependTo("main");
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Hello? I have had to remove the code because it just breaks the display, however I would still like this at the top and not the bottom?
Hi,
Sorry for the late response. Try to change your code to this one:
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() <= 480){
jQuery("aside").prependTo("main.template-shop");
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Hope this helps.
Best regards,
Nikko