• Hi. Instead of showing contents of post, its show the whole page in popup. Grabbing first tag in article then showing whole page as if you did a search just for that tag.

    Any suggestions?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter JJNW

    (@jjnw)

    Okay, I removed from showing my tags, so it wouldn’t grab them, but now modal on click doesn’t work. I get an error in webpage:

    Uncaught TypeError: postLink is undefined
        initModal https://localhost:81/zzz/yyy/xxx/public/js/wp-post-modal-public.js:229
        jQuery 2
            dispatch
            handle

    Which is this code:

    var postSlug =
                postLink.lastIndexOf("/#") > -1
                  ? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
                    basename(postLink)
                  : basename(postLink);

    So what are my options?

    Thanks!

    • This reply was modified 2 years, 11 months ago by JJNW.
    Thread Starter JJNW

    (@jjnw)

    YAY ! Fix it !

    I had to comment out lines 228 through 237 in wp-post-modal-public.js

    /* var postSlug =
                postLink.lastIndexOf("/#") > -1
                  ? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
                    basename(postLink)
                  : basename(postLink);
              var postAnchor =
                postSlug.lastIndexOf("#") !== -1
                  ? postSlug.substring(postSlug.lastIndexOf("#"))
                  : false;
    			  */

    Woot woot!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing whole page’ is closed to new replies.