WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] want to remove nextgen from header (3 posts)

  1. sarmadhassan
    Member
    Posted 5 years ago #

    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?

  2. sarmadhassan
    Member
    Posted 5 years ago #

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

  3. Augusto
    Member
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.