• Resolved Luke

    (@danceyrselfclean_admin)


    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.

    https://www.ads-software.com/extend/plugins/ajaxify-wordpress-site/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Reloading JS: Yet Another Related Post Plugin’ is closed to new replies.