WordPress.org

Ready to get started?Download WordPress

Forums

Ajaxify WordPress Site(AWS)
[resolved] Shortcodes? (6 posts)

  1. poco06
    Member
    Posted 1 year ago #

    Hello,
    I've tried your plugin and it's working fine except on 1 point for me : sometimes, shortcodes are not managed correctly. I have for example googlemap shortcode : it's OK when you arrive in the page directly with your browser, but if you try to get it with an internal link via Ajaxify, nothing is displayed.
    I've also got some issues with slider shortcodes the same way.
    Is there anything to do on this?
    Many thanks

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

  2. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, because here in this short code data are coming due to some js files, now when you are going to the page which having those shortcodes you have to reload those js files again
    for ref:
    http://youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/

  3. poco06
    Member
    Posted 1 year ago #

    Hello manishkrag,
    Thanks for your answer.
    Can you be a little more precise on how I can reload the needed js files?
    I have visited the link you mentionned but thses are specific examples and I don't know how to cope with mines.
    Thanks

  4. poco06
    Member
    Posted 1 year ago #

    Hello manishkrag,
    Sorry to push you again. Do you have some info concerning how I can reload the js file (what type of command should I use and where should I place it).
    Many thanks.

  5. manishkrag
    Member
    Plugin Author

    Posted 1 year ago #

    NP,

    Whatever the link I have provided you above is explaining all, let say you want to reload a js file after ajax, then folow the below:
    a) Open file ajaxify.js
    b) Search for “$body.removeClass(‘loading’);”
    c) Paste the below code just before this line

    scriptNode = document.createElement('script');
    contentNode.appendChild(scriptNode);
    scriptNode.setAttribute('src', rootUrl + 'YOUR JS FILE PATH');
  6. poco06
    Member
    Posted 1 year ago #

    Hi manishkrag,
    Thanks for the info. I've tried it and did not see any improvement. Concerning google plugin for example, I have the same .js files that are loaded with or witout ajaxify, but when I use ajaxify, the map is not shown.
    Is there something else to check?
    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.