WordPress.org

Ready to get started?Download WordPress

Forums

Ajaxify WordPress Site(AWS)
[resolved] Reloading JS: Yet Another Related Post Plugin (7 posts)

  1. DanceYrselfClean_Admin
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/ajaxify-wordpress-site/

  2. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    please send me the link where I can see example.

  3. DanceYrselfClean_Admin
    Member
    Posted 1 year ago #

    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.

  4. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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.
    http://www.priceofmilk.co.uk/wp-content/plugins/yet-another-related-posts-plugin/styles-thumbnails.php?width=120&height=120&ver=4.0.3

  5. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    if need help contact me to skype: mfsi_manish

  6. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    seems like you solved the problem. use a loader from the back end AWS form.

  7. DanceYrselfClean_Admin
    Member
    Posted 1 year ago #

    Ok thanks for the assistance, I’ve copied that the css from that file into my sites custom css and its all sorted now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic