Forums

[Plugin: NextGEN Gallery] How do I Disable NextGen Gallery on HomePage (Speeds up Site) (5 posts)

  1. remotay
    Member
    Posted 2 years ago #

    I want to disable nextgen gallery on my homepage (I Don't use the plugin there anyway).

    The plugin itself has like 4 JS and CSS components to it, so disabling it on the homepage would definitely speed things up. How can I easily do this?

    Thanks in advance

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. remotay
    Member
    Posted 2 years ago #

    If anyone has a solution I would really appreciate it.

  3. grtwordpress
    Member
    Posted 2 years ago #

    I must be missing something but if your site is bogged down by serving 4 JS & CSS then you have a bigger problem.

  4. remotay
    Member
    Posted 2 years ago #

    It's not bogged down at all, but I'm trying to speed it up for perfect optimization. I already score an 80/100 on Google's PageSpeed, but I strive for perfection.

  5. remotay
    Member
    Posted 2 years ago #

    Found out how to do this myself.

    Just add the conditional if statements to the nggallery.php

    I added if(is_archive() || is_single() ) { under
    function load_scripts() {

    and closed the tag after.

    I did this on the styles as well.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.