WordPress.org

Ready to get started?Download WordPress

Forums

w3c validator error, jquery function (3 posts)

  1. goses
    Member
    Posted 1 year ago #

    Hi,

    I have 4 errors when i validate my site, and i dont know how fix it.
    These errors are from initJQuery() function. Its generated in wp_head(). This function is not necessary to me because i already added jquery.

    i used this:

    wp_deregister_script('jquery');
    remove_action('wp_head', 'jquery');

    but still this function is generated - initJQuery()

    how remove it from wp_head?

  2. Arie Putranto
    Member
    Posted 1 year ago #

    AFAIK, WP doesn't have initJQuery() method in it.
    And there's no registered action called 'jquery' on wp_head().
    Also jquery is not loaded by default unless it's load by the theme.

    You may as well check your theme if it loads the iniJquery() method.

  3. goses
    Member
    Posted 1 year ago #

    This is not loads by the theme, because i made it from zero.
    Maybe its generated by some plugin. I must check it.

Topic Closed

This topic has been closed to new replies.

About this Topic