• I am using remove_action in function.php to strip off all unnecessary files from the pages (which are not using em)

    e,g my home page doesnt include a gallery so i don’t want to load nextgen css or js.. how can I achieve this? I ve already tried using

    remove_action('wp_print_scripts', array(&$this, 'load_scripts') );
    remove_action('wp_print_styles', array(&$this, 'load_styles') );

    its not working. Any idea?

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

    (@sarmadhassan)

    Good to see everybody wants to keep loading unnecessary css/js on pages where they are not required. lol

    I’m having the same problem.
    So many pages without a gallery, and all of them with the header’s includes.

    It’s unnecessary.. Any solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] want to remove nextgen from header’ is closed to new replies.