Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Fancybox javascript library conflict

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Fancybox javascript library conflict

Tagged: javascript conficts

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 6 months ago by qwertysteve.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 30, 2013 at 11:46 pm #10321
    qwertysteve
    Member

    Hi guys,

    I’m trying to get the Fancybox login working on my site. The Fancybox login will work with the default theme but won’t work when my custom theme is activated. A little bit annoying as I bought the theme off Themeforest who apparently have guidelines for premium themes.

    I’ve read what I can and tried the following without success:


    Tried adding this to header.php

    <?php

    function my_scripts_method() {

    wp_deregister_script( ‘jquery’ );

    wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js&#8217;);

    wp_enqueue_script( ‘jquery’ );

    }

    add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’);

    ?>


    Tried adding this to header.php

    <?php wp_enqueue_script(“jquery”); ?>

    <?php wp_head(); ?>

    <script type=”text/javascript”

    src=”<?php bloginfo(“template_url”); ?>/js/yourScript.js”></script>


    There is a long list of warnings in the console. There is one error, but this is still present when only the default theme is activated:

    Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ [http://www.scenicgems.com/wp-includes/js/jquery/jquery.js?ver=1.10.2:4]


    I’ve read as much as I can through the forums and guides but this is beyond my limited skill level. Is this an easy fix or will I need a developer?

    If I need a developer what area seems to be the cause from your perspective?

    My website is [www.scenicgems.com]


    I should say that I think this plugin is great. Very easy to use compared to others that I have tried. I found your plugin as you support Google first click free. It’s features like this that separate you from the crowd.

    Many thanks

    Stephen

    December 31, 2013 at 2:13 am #59993
    admin
    Keymaster

    I think the fancy login is working now. You have a little issue with the z-index CSS properly on this theme. Try the following:

    1) Grab this custom css plugin:

    http://www.tipsandtricks-hq.com/wordpress-custom-css-plugin-6413

    2) Then add the following css code in there:

    #exposeMask{
    z-index: 1 !important;
    }

    December 31, 2013 at 3:19 am #59994
    qwertysteve
    Member

    The CSS tweak you suggested has almost fixed it (I put this in the theme’s custom.css file).

    There now seems to be some elements that are not masked when the fancybox comes up. The fancybox also does not dissapear everytime if clicking in the void area. Is this fixable?

    Appreciate your time on this.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ