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.

jQuery - Fancybox

Featured Replies

Hey guys,

 

Im working on a website and on every page in the footer there is a link saying contact us, there is also a contact page on the main navigation. Im using Fancybox to show other webpages and images, but I want to use it to show the primarycontent div which is on the contact.html page. When I follow the instructions for showing inline areas it just brings up the primarycontent of the page I am currently on despite changing the ref to contact.html#primarycontent.

 

Has anyone done this before or have any idea how I might be able to do it?

 

Thanks :give_rose:

Looks to me like you have to use the iframe link element to get what you are looking for. You're trying to pull some content from another Web page, not inline content from the page you're on.

 

<a class="iframe" href="contact.html#primarycontent">Contact us</a>

 

then modify the .iframe class in the fancybox style.css file to get the look you want.

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.