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 9116531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:41:49+00:00 2026-06-17T04:41:49+00:00

I built this flyout contact panel. It worked fine until I put it into

  • 0

I built this flyout contact panel. It worked fine until I put it into my WordPress site, then it refused to work at all. Here’s what it’s supposed to do:

http://jsfiddle.net/XwTpE/1/

I found that if I put jQuery(document).ready at the beginning, it started working, but now it won’t close! When you hit the close button, it just re-opens. In fact, I’ve noticed that anywhere you click on the page causes it to re-open. See demo here:

http://jsfiddle.net/q9b7M/1/

Hopefully this is simple to fix! Any help is appreciated. Thanks!

  • 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-17T04:41:50+00:00Added an answer on June 17, 2026 at 4:41 am

    You need:

    jQuery(document).ready(function() {
      jQuery('#contactFlyout').click(function()
     {
        jQuery(".togglepanel:visible").hide();
        jQuery("#contact_panel").animate({width:'toggle',height:'toggle'},200 );
    });
    
    // the close button
    $('.closeDiv').click(function()
     {
        jQuery(".togglepanel:visible").animate({width:'toggle',height:'toggle'},200 );
    
    });
    });
    

    See: http://jsfiddle.net/DcRHh/2/

    Or you can use the shorthand as pointed out by Fabricio. Although I would stick with jQuery over $ inside WordPress, unless you know what you are doing when it comes to avoiding conflict with other scripts.

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

Sidebar

Related Questions

so, i've built this site to put up some of my photos: pics.nicecomeback.com it's
I built this nifty little weather/clock app as a way of learning to work
Just built this site: http://www.aspenwebsites.co/ I'm still testing it in different browsers and fixing
Ok so I have built this site: http://boardersforchrist.com/new/ and the owner wanted the footer
I built this site on a local MAMP host. Now I uploaded the database
I pretty much built this website in firebug, then when I copied the code
I built this site a couple of years back and but am now in
I've built this website relying heavily on JQuery, and have run into an issue
I've built this website last week, which has worked perfectly across all browsers that
I built this class to work with PDO, to make SQL queries 'easier' and

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.