Hi guys,

I'd like to remove the rel="lightbox" attribute for a specific anker-item. If I remove the attr via jQuery, the lightbox is loaded anyway. Same the other way round: adding rel="lightbox", the lightbox is not loading.

Any ideas on how to specifically edit the rel-attributes?

Thanks!

PS: Paths won't help, I'm actually trying to deactivate the lightbox for mobile for a specific link.

Comments

quotientix’s picture

Issue summary: View changes

text change

gifad’s picture

It seems that your jQuery code executes after Lightbox2 scripts, so it has no effect;
Fortunately, Lightbox2 uses default options for drupal_add_js(), except "scope”, defined by

$js_location = variable_get('lightbox2_js_location', 'header');

;
So you just have to read drupal_add_js api documentation to position your code just ahead…

gifad’s picture

Issue summary: View changes

Text change