Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove_action and dequeue_script

  • Avatar of Marcella
    Marcella
    Participant

    @marcella1981

    Having some troubles removing 3 actions and 1 script.

    Namely, bp_core_add_cropper_inline_js, bp_core_add_cropper_inline_css and bp_core_confirmation_js. The script is jCrop.

    Running this code in functions.php of the child theme appears does nothing.

    `remove_action(‘wp_head’, ‘bp_core_add_cropper_inline_js’);
    remove_action(‘wp_head’, ‘bp_core_add_cropper_inline_css’);
    remove_action(‘wp_head’, ‘bp_core_confirmation_js’);

    wp_deregister_script(‘jcrop’);`

    Any ideas on how to work around this without core edits?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.