[Resolved] Just want to exclude homepage from ajax load
I have been using the plugin to great effect on my site, and have modified line 43 of the ajax-page-loader.js to exclude some page of my site from loading in ajax.
Ex: if ( this.href.indexOf(AAPLhome) >= 0 etc….
Now i need to exclude the homepage links from loading in ajax. I cant use the full relative path as that means all links will be excluded so I tried to target my links by adding a class and using the jquery hasClass selector. However this does not work.
Ex: if ( this.hasClass(‘homelink)) etc….
This gives the error this.hasClass is not a function. Can someone with a little more jquery experience please help me out to get this working?
- The topic ‘[Resolved] Just want to exclude homepage from ajax load’ is closed to new replies.