How to remove image on single product and get product to span page?

I added a jquery to the footer.php in the child theme. Within that I listed all the product pages I wanted to adjust the css for. This is not ideal for sites with large content, in this case there are only two products.

For the sake of larger sites, there could possibly be some wild card at the end of the url.

<?php //if(is_post()){ ?>
<script type="text/javascript">
    jQuery(function(){

        if(window.location.href=='http://mywebsite.com.au/product/myproduct/')
        {
            jQuery('.images ').remove();
            jQuery('.summary.entry-summary.portrait-screenshot ').css('width','100%');
            jQuery('.cart ').css('width','70%');
        }
    });
</script>
<?php //} ?>

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.