• Hello,

    I’m trying to make my own WP theme, but the problem is that javascript is not working.
    Here is part of my code in header.php file:

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.vticker-min.js"></script>

    and in functions.php

    <?php
    if( !is_admin()){
       wp_deregister_script('jquery');
       wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"), false, '1.4.1');
       wp_enqueue_script('jquery');
    }

    I think my code is right, but none of javascript is loading. In my html template js is work fine.

    Where is the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter _mary_

    (@_mary_)

    Hello, I fixed it. The problem was- my cu3er slider not loaded. The reason was in config.php file.
    Here is the solution:
    Just before require_once('../../../../wp-config.php'); you must put @ simbol:
    `@require_once(‘../../../../wp-config.php’);’

    Look here:

    Man Can u tell me how can i embed Cu3ER Gallery in wordpress or how did u do it… i really need it badly i will be thankful to you.!!! Please help me out

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript loading problem’ is closed to new replies.