Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:13:46+00:00 2026-06-14T08:13:46+00:00

I have been trying to get fancybox to work in this free template that

  • 0

I have been trying to get fancybox to work in this free template that a nice guy gave away on reddit yesterday but I’m not having much luck. I’m decent with HTML/CSS but not too great at Jquery. If anyone could point me in the right direction I would appreciate it. I’m trying to get the portfolio images to pop up in fancyboxes. http://jsfiddle.net/yz93H/1/ Thanks in advance for any help.

 <script type="text/javascript">
  $(document).ready(function() {
   $("a.fancybox").fancybox();
   });
    </script>


   <figure class="entry web"> 
                <a class="fancybox" href="img/portfolio-image.jpg"><img src="img/portfolio-image.jpg" alt=""></a>
            </figure> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:13:47+00:00Added an answer on June 14, 2026 at 8:13 am

    The jsfiddle you posted is a little bit difficult to work with due to all the relative paths, still, one thing I noticed is that you’re not linking the Fancybox javascript into your document.

    There should be something like:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>`
    <script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>`
    

    Hopefully that will fix it.

    EDIT: Sorry, missed your js at the end of the document. On a second look, I found your problem. The snippet you posted should come after jQuery has been loaded. Since your jQuery is only loaded at the end of the document, your code was throwing Object #<HTMLDocument> has no method 'ready'.

    I’ve created a new fiddle with a working version of what you posted. Everything is loaded off CDN’s and I’ve used Twitter’s logo as a showcase: http://jsfiddle.net/tiagoespinha/yz93H/4/

    Essentially, the only change you need is to put this

    <script type="text/javascript">
        $(document).ready(function() {
            $("a.fancybox").fancybox();
        });
    </script>
    

    after jQuery’s script tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get this thing to work for quite a while
So this FancyBox thing is really frustrating me. I have been trying to get
I have been trying to get this to work and I am nearly there
I have been trying to get this to work with several tutorials/answers here, but
I have been trying to get this code to work for a while now
We have been trying to get the Editor-Template to work with a dynamic property
I have been trying to get this to work. Basically I have a search
I have been trying to get this to work for most of the day
I have been trying to get Twitter Bootstrap btn-group with dropdown to work for
I have been trying to get a custom Value from the Custom Field that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.