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

  • Home
  • SEARCH
  • 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 6225339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:49:28+00:00 2026-05-24T08:49:28+00:00

I am following the steps given here http://wordpressthemescollection.com/simple-modal-google-map-easy-modal-map-boxes-with-jquery-752.html to display a Google map in

  • 0

I am following the steps given here http://wordpressthemescollection.com/simple-modal-google-map-easy-modal-map-boxes-with-jquery-752.html to display a Google map in a lightbox like window in a WordPress site.

But the code doesn’t work. Checking Firebug gives an error “jQuery.modal() is not a function”

I have made sure that the jQuery and Simple Modal scripts are loaded and in the page where I want to display the map I include the jQuery code

<a href="http://maps.google.com.." class="map">Show map</a>

....//some more code

jQuery(document).ready(function () {
    jQuery('.map').click(function (e) {
        jQuery.modal('<iframe src="'+this.href+'&output=embed"></iframe><p class="larger"><a target="_blank" href="'+this.href+'">View larger</a></p>');
        return false;
    });
});

I have a sneaking suspicion that jQuery.modal(.... needs to be changed to jQuery('#someid').modal() but not sure how to go about it.

Please can someone shed some light on whats going wrong here.

Many thanks

EDIT: As I mentioned I have already loaded the required scripts in the themes header.php

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script src="/wp-content/themes/thename/js/jquery.simplemodal.1.4.1.min.js" type="text/javascript"></script>
  • 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-05-24T08:49:30+00:00Added an answer on May 24, 2026 at 8:49 am

    Seems that the jQuery Simple Modal plugin is not properly installed. Have you included its js file in your document?

    Marco

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

Sidebar

Related Questions

I am trying to follow the steps on the following site http://msdn.microsoft.com/en-us/library/ms181089(VS.80).aspx But I
So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps.
The following simple function applies a given monadic function iteratively until it hits a
I have just merged two repositories following advice given here . Since both repositories
I did the following steps to use the CDialog in win 32 application: Changed
Can anyone post the steps for integrating mercurial to phped. I followed the following
Given the following XML and XSL transformation, I'd expect two <node/> elements in the
Here is a tutorial that indicates how to combine jQuery Form Validation with reCAPTCHA.
I am using the following form builder ( http://dontlink.me/formbuilder/ ) and making lots of
Following steps result in a crash in NSFetchedResultsController. I try to add the first

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.