jquery - Problem with Ajaxed Wordpress and internal # Links -


i use ajax load #article content single.php page template filterable image navigation is.

the content loads fine , filter navigation works. when try copy&paste link new tab deeplinking won't work.

i figured out problem filterable navigation filters adding #foo url. if remove function/plugin works.

the ajax adds event listner internal links except few defined hereby:

 $(document).delegate("a[href^='"+siteurl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {      location.hash = this.pathname;      return false;   }); 

i tried adding internal links filter in there, had no success :not[(href^=#)] , similiar because don't know logic.

i need exclude links #portfolio-filter li a

you add class of links don't want include, like:

$('#portfolio-filter li a').addclass('ignore');

and work $('a[class!="ignore"]') selector.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -