[Resolved] Reloading JS: Yet Another Related Post Plugin
I’m having a little issue trying to reload JS for the Yet Another Related Posts plugin.
Within the ajaxify-wordpress-site/js/ajaxify.js file I have added the following code just above the $body.removeClass(‘loading’); line.
scriptNode = document.createElement('script'); contentNode.appendChild(scriptNode); scriptNode.setAttribute('src', rootUrl + 'wp-content/plugins/yet-another-related-posts-plugin/js/options.js');
scriptNode = document.createElement('script'); contentNode.appendChild(scriptNode); scriptNode.setAttribute('src', rootUrl + 'wp-content/plugins/yet-another-related-posts-plugin/js/metabox.js');
options.js and metabox.js are the only two js files I can find for this plugin but the plugin still displays oddly when a page is loaded with ajax.
Below are links to images of how it should look and how it appears once loaded with ajax.
Any assistance on this matter would be appreciated.
please send me the link where I can see example.
Here’s the homepage http://www.priceofmilk.co.uk/
Next click on the first post underneath the main slider, the post titled
This is an example post.
Then if you scroll down to below the content you should see the related posts plugin in action.
Seems your related posts are loading perfectly only the design issue.
YARPP plugin using a css file for design and this file is added into the ajax container that is why while you are clicking on link style sheet is not loading.
if need help contact me to skype: mfsi_manish
seems like you solved the problem. use a loader from the back end AWS form.
- The topic ‘[Resolved] Reloading JS: Yet Another Related Post Plugin’ is closed to new replies.