Can't load contents from another page with jQuery

(document).ready(function(){ (’#target-div’).load(‘https://example.webflow.io/about #title-1’);
});

I’ve got this code to work on another site, but it won’t work in Webflow. Why not? I’m pulling internal content from one page to another so it should work.

Any assistance you can provide would be greatly appreciated. Thanks.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Tri it with the /about #title-1 which would be a relative link.

Thank you very much Jeff for your assistance.

This didn’t work, but when I added the script to the footer, it worked! The jQuery library had to load fully first.

Yes. JQuery is loaded just before the body close custom code area. So any scripts that depend upon it need to be placed there, as you discovered.

1 Like