Title: Lightbox&#8230;. again?
Last modified: August 22, 2016

---

# Lightbox…. again?

 *  Resolved [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/)
 * Hello,
 * I just can’t get the lightboxes to work in my website. I has worked before, but
   that was using other plugins complementary to NextGen. I’ve removed those but
   now I just can’t get the ‘standard’ one to work on [http://www.vasco62.nl](http://www.vasco62.nl).
   
   I tried clearing the caches, resetting the options and checked it wasn’t any 
   url with a link to a testing site. So that is it for what I could find over here.
   Anyone who can help me out?
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214050)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – The necessary JavaScript
   and CSS used for the Lightbox Effects is not being loaded on your page … this
   may be a minor issue with your theme.
 * Does your theme have a call to the `wp_footer()` function (usually in the footer.
   php template)?
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214114)
 * To be honest: I wouldn’t know… Probably you can tell?
 *     ```
       <?php
   
       function bfa_footer_page_links($matches) {
       	$page_id = $matches[1];
       	$page_data = get_page($page_id, ARRAY_A);
       	$page_title = $page_data['post_title'];
       	$page_url = get_permalink($page_id);
       	return '<a href="' . $page_url . '">' . $page_title . '</a>';
       }
   
       function bfa_footer() {
   
       	global $bfa_ata, $post;
           $homeURL = get_home_url();  
   
       	$footer_content = $bfa_ata['footer_style_content'];
   
       	// page links
       	if ( strpos($footer_content,'%page') !== FALSE ) {
       		$footer_content = preg_replace_callback("|%page-(.*?)%|","bfa_footer_page_links",$footer_content);
       	}
   
       	// home link
       	if ( strpos($footer_content,'%home%') !== FALSE ) {
       		ob_start();
       			echo '<a href="' . $homeURL . '/">'; bloginfo('name'); echo '</a>';
       			$footer_home_link = ob_get_contents();
       		ob_end_clean();
       		$footer_content = str_replace("%home%", $footer_home_link, $footer_content);
       	}
   
       	// login/logout link
       	if ( strpos($footer_content,'%loginout%') !== FALSE ) {
   
       		ob_start();
       			wp_loginout();
       			$loginout_link = ob_get_contents();
       		ob_end_clean();
   
       		if ( $bfa_ata['nofollow'] == "Yes" ) {
       			$loginout_link = str_replace(' href=', ' rel="nofollow" href=', $loginout_link);
       		}
   
       		$footer_content = str_replace("%loginout%",  $loginout_link, $footer_content);
       	}
   
       	// register link
       	if ( strpos($footer_content,'%register%') !== FALSE ) {
   
       		ob_start();
       			wp_register();
       			$register_link = ob_get_contents();
       		ob_end_clean();
   
       		$register_link = str_replace( array('
       <li>', '</li>
       '), '', $register_link);
   
       		if ( $bfa_ata['nofollow'] == "Yes" ) {
       			$register_link = str_replace(' href=', ' rel="nofollow" href=', $register_link);
       		}
   
       		$footer_content = str_replace("%register%",  $register_link, $footer_content);
       	}
   
       	/* LEGACY up to Atahualpa 3.2 admin link and register link were two different tags,
       	now they're combined into one tag %register% mimicking the wp_register() function */
       	if ( strpos($footer_content,'%admin%') !== FALSE ) {
   
       		ob_start();
       			wp_register();
       			$admin_link = ob_get_contents();
       		ob_end_clean();
   
       		$admin_link = str_replace( array('
       <li>', '</li>
       '), '', $admin_link);
   
       		if ( $bfa_ata['nofollow'] == "Yes" ) {
       			$admin_link = str_replace(' href=', ' rel="nofollow" href=', $admin_link);
       		}
   
       		$footer_content = str_replace("%admin%",  $admin_link, $footer_content);
       	}
   
       	// RSS link
       	if ( strpos($footer_content,'%rss%') !== FALSE ) {
       		ob_start();
       			bloginfo('rss2_url');
       			$footer_rss2_url = ob_get_contents();
       		ob_end_clean();
       		$footer_content = str_replace("%rss%", $footer_rss2_url, $footer_content);
       	}
   
       	// Comments RSS link
       	if ( strpos($footer_content,'%comments-rss%') !== FALSE ) {
       		ob_start();
       			bloginfo('comments_rss2_url');
       			$footer_comments_rss2_url = ob_get_contents();
       		ob_end_clean();
       		$footer_content = str_replace("%comments-rss%", $footer_comments_rss2_url, $footer_content);
       	}
   
       	// Current Year
       	$footer_content = str_replace("%current-year%",  date('Y'), $footer_content);
   
       		// Parse widget areas:
       	$result = bfa_parse_widget_areas( bfa_footer_output($footer_content) );
   
       	return $result;
   
       }
       ?>
       ```
   
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214129)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – Please do not paste
   very large pieces of code into the forums … they simply do not handle it very
   well.
 * As it is, I re-visited you site to see you are using Atahualpa which is generally
   a well written theme (and should have the `wp_footer()` call) unless the version
   you are using has been modified.
 * Given this, I would suggest looking at your active plugins as a place where a
   conflict is being created.
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214132)
 * OK, turns out it’s the TubePress plugin. Which is a bummer since it works wel
   and is handy to put all yourubevideo’s on one page…
 * Thanks for your help, I guess the rest is out of your hands…
 * Strange is still in Firefox the photo’s open in a lightbox, but on a new paqge,
   so not a floating photo over the original page.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214135)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – Unfortunately TubePress
   has not consistently worked with NextGEN Gallery which is a shame because it 
   makes a very nice complimentary plugin to use.
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214194)
 * You’re right, they both are. Thanks again for your help.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214272)
 * And now it’s down again, possibly after some upgrades on other plugins?
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214273)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – What are you referring
   to as “down again”?
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214275)
 * [@cais](https://wordpress.org/support/users/cais/): That the lightbox is not 
   working anymore on the site.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214276)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – Is this the same conflict
   with TubePress? Also, I am not seeing the NextGEN Gallery JavaScript and CSS 
   being loaded into the page so that the Lightbox Effect will work … have you made
   any changes to the theme or other active plugins?
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214277)
 * No, Tubepress is still off, and no changes apart from normal updates.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214278)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – Hmm, perhaps it wasn’t
   TubePress … or there is another conflict you are experiencing on your site now?
 * – Cais.
 *  Thread Starter [iwan155](https://wordpress.org/support/users/iwan155/)
 * (@iwan155)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214279)
 * No, all is ok as it was. Just no fancyboxes…
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214280)
 * [@iwan155](https://wordpress.org/support/users/iwan155/) – Not having the Lightbox
   Effects work is very often due to a plugin conflict … or a theme conflict if 
   it is providing Lightbox effects.
 * If that is not the case here, then it may be best to send us a Bug Report ([http://www.nextgen-gallery.com/report-bug/](http://www.nextgen-gallery.com/report-bug/)…
   please reference this topic) with your site specifics so we can look closer at
   this issue.
 * We will need log in and FTP credentials for your WordPress installation as well,
   please include those with your Bug Report.
 * Thanks!
 * – Cais.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Lightbox…. again?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [NGG](https://wordpress.org/support/topic-tag/ngg/)

 * 14 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/lightbox-again/#post-5214280)
 * Status: resolved