Hi Josue,
Unfortunately this isn’t working, just thrown a blank front page.
Then I thought the PHP function bracket wasn’t closed, also JS code included between <script> tags.
This code seems working now. Thank for your help guys!
function add_custom_script(){
?>
<script>
(function($){
$(window).load(function() {
if(!$(‘aside.sidebar’).parents(‘.container’).length > 0){
$(‘aside.sidebar’).appendTo($(‘.sidebar_right .container’));
}
});
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);
Hi,
Thank you for the quick reply, find the requested info below.
Cheers,
Zed