I am trying to serve App Proxy content via load Script into a shopify store.
I have created an index.html file loaded on an Amazon S3 server and set content type to application/liquid.
If I go to shopname/apps/proxy I get my div inserted into the shopofy layout and some content. But my app is just a div which I want to insert into every page of the store. Here are two approaches I've tried-
$('body').load('/apps/proxy');
No matter which page I am on it automatically redirects me to home page.
If I try to do
$('body').append('div id="myDiv">/div>');
$("#mydiv").load('/apps/proxy');
It duplicates the content of the page
What I am failing to understand why is the entire shop layout being dispayed , I am sure it is my lack of understanding as to how shopify UI works, but I only want my form to be displayed into a div as a part of the page .