Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter pdme

    (@pdme)

    Tried that, but no success.

    According to the console, the the browser stops calling the whole function (the one I added) after clicking to see later months…

    Thread Starter pdme

    (@pdme)

    not really, since it’s a password-protected site for a family who wants to keep it that way.

    wait, I had this loaded in the functions.php (TwentyTwelve), to avoid conflicts (found on CSS Tricks):

    if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
    function my_jquery_enqueue() {
       wp_deregister_script('jquery');
       wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
       wp_enqueue_script('jquery');
    }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    after deleting this, I get this error message twice in the console:

    Uncaught TypeError: Property ‘$’ of object [object Object] is not a function localhost/:291
    (anonymous function)

    Thread Starter pdme

    (@pdme)

    it shows me no errors. this is the jQuery I added in the footer, right before </body>

    <script>

    $(document).ready(function(){
    $(‘.date_approved, .date2approve’).on(‘mouseenter’, function(){
    $(‘#booking_info’).fadeIn(100);
    $x=$(this).attr(‘class’).match(/[\d]+-[\d]+-[\d]+/);
    $(‘#booking_info’).text(booking_info[$x]);
    });
    $(‘.date_approved, .date2approve’).on(‘mouseleave’, function(){
    $(‘#booking_info’).fadeOut(100);
    });
    });

    </script>

    Thread Starter pdme

    (@pdme)

    ok, stupid question: how exactly do I use the developer tools to check for JS errors?

    ps. I haven’t modified the source code in any way

    pss. thanks for your quick reply!

    just to add another bothered soul to the thread – I guess still not resolved?

    in the meantime, I see no other option than to upload images to the media library, which is a pain.

Viewing 5 replies - 16 through 20 (of 20 total)