• hello, trying to get a few kinks worked out with the way i’m dynamically loading content with ajax. keep in mind that i really know nothing about ajax, and have just spent the last five hours or so reading all i could about this without really getting anywhere with my issue. the post content loads perfectly but the plugins within the post do not work correctly. this is the code in my header.php :

    https://pastebin.com/vCEx6SaN

    and this is the code in my main page to set the href to open the content in the new div on click:

    <a href="javascript:ajaxpage('https://sidoniesmith.com/main/sister-act/', 'contentarea');">sister act</a>

    like i said, the content loads just fine but the gallery plugin won’t work in the ‘contentarea’ div, whereas it does work when just viewing the post by itself. to narrow down my options, i tried this with a media player plugin too and same thing, works in the individual post but not when being pulled by ajax.

    any help would be great.
    thanks.
    -jared

Viewing 1 replies (of 1 total)
  • Thread Starter jared s smyth

    (@jredsmyth)

    i should also add that i have the pages that ajax is pulling in set with a custom template that doesn’t get the header.php or footer.php file if that makes any difference.

Viewing 1 replies (of 1 total)
  • The topic ‘ajax content not loading plugins correctly’ is closed to new replies.