The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Ghost java script codes!

  • # October 9, 2012 at 4:30 am

    i wanted to enter some javaScript on my theme register.php file but by surprise after some save of my code and running and testing.. when i deleted my jQuary code i can still see the result!! you dont believe if i say i restart my PC several times but i still can see working of my Jquary codes that i deleted so far!! how can i get rid of that?! :( and again by suprise i use these codes in another wordpress site in my easyphp server but nothing happened!!

    PS1: my Jquary code are:

    PS2: i entered these code to function.php file for working with javascript in wordpress:

    function my_init() {
    if (!is_admin()) {
    wp_register_script(‘jquery’, ‘’, false, ‘1.3.2’, true);

    // load a JS file from my theme: js/theme.js
    wp_enqueue_script(‘my_script’, get_bloginfo(‘template_url’) . ‘/js/theme.js’, array(‘jquery’), ‘1.0’, true);
    add_action(‘init’, ‘my_init’);

    # October 11, 2012 at 11:54 pm

    This reply has been reported for inappropriate content.

    did you clear your cache?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed