So close - what you've got should work, you just have the and
syntax wrong in your if
condition:
if (!is_admin() && !is_home()) { ....
Pat
2010-07-19 13:45:26
So close - what you've got should work, you just have the and
syntax wrong in your if
condition:
if (!is_admin() && !is_home()) { ....
if (!is_admin() && !is_front_page())
wp_enqueue_script('lightbox', ($stimuli_lightbox_plugin_prefix.$stimuli_lightbox_js),array('scriptaculous-effects'), '1.8');
Thank you both Pat and TheDeadMedic, problem was still with && !is_home and && !is_fornt_page.
I dont know why but in place where i tried is_home and is_front_page wasn't doing its job, but i found on other page that wraping whole wp_enqueue_script in a function is doing it. So its like this:
function scripts() {
if (!is_admin() && !is_home() ) {
// jquery
global $stimuli_lightbox_plugin_prefix;
global $stimuli_lightbox_js;
wp_enqueue_script('lightbox', ($stimuli_lightbox_plugin_prefix.$stimuli_lightbox_js), array('scriptaculous-effects'), '1.8');
}
}
add_action( 'wp_print_scripts', 'scripts'); // now just run the function