Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #753360

    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

    #753363

    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');
    
    #754031

    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?

    #756634

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.