• Hello all.

    I want to only load nextgen gallery to the pages that actually use it. I plan on accomplishing this by inserting: if(is_page(array(x,y)) ) with x and y being the page id’s.

    I plan on inserting it:

    if ( nggGallery::get_theme_css_file() )
    			wp_enqueue_style('NextGEN', nggGallery::get_theme_css_file() , false, '1.0.0', 'screen');
    		else if ($this->options['activateCSS'])
    </strong>//INSERT CODE SNIIPET HERE<strong>
    			wp_enqueue_style('NextGEN', NGGALLERY_URLPATH . 'css/' . $this->options['CSSfile'], false, '1.0.0', 'screen');

    Am I correct in doing this? I also plan on adding it to the activate thickbox and modiefied shutter load functions. My one concern is if I’m using /%postname%/ for my permalink, what is my page id’s. Are they the page title such as “galleries” and “forgotten music,” or are they still numbers and if so how do I find the numerical values?

    Thanks in advance for any thoughts, ideas, or instructions beforehand

  • The topic ‘[Plugin: Nextgen Gallery]Limiting the pages it loads on’ is closed to new replies.