Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does lightbox work with a php header?

Featured Replies

Does anyone currently use the lightbox script when attempting to insert the script into the header, where the header is php included?

 

It seems to call the script in Firefox but not Internet Explorer?

 

Has anyone experienced this?

 

Thanks

The lightbox script goes in the "head" of the page, not the "header" ;)

  • Author

The lightbox script goes in the "head" of the page, not the "header" ;)

 

 

Yeah thats what I meant :p

 

Right, I have managed to get the lightbox working across the browsers now. It appears that the mootools.js on the page www.cashmanagement.co.uk/news.php was blocking IE and Chrome from displaying the lightbox. I have managed to get around this by "hiding" the "mootools.js" and another couple of scripts inside tags to hide them from the browser.

 

Now I am at this point would anyone know how to stop scripts conflicting with each other?

 

Thanks alot

Now I am at this point would anyone know how to stop scripts conflicting with each other?

That can get very tricky, especially if using 3rd party scripts. One tip is to only use one framework (ie mootools or jquery) as this can minimise conflicts..

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.