Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dFactory

    (@dfactory)

    Use rl_lightbox_args filter hook and that allows you to modify ligthbox args and set script to empty.

    But there will be an option for this in the near future.

    Thread Starter CreativeFedora

    (@creativefedora)

    Thanks. Is there documentation for the rl_lightbox_args filter hook?

    Plugin Author dFactory

    (@dfactory)

    Not yet. But it’s very simple to use in your case. Just paste this into functions.php of your theme:

    function custom_rl_lightbox_args($args) {
    	if ( is_home() ) { // or is_front_page()
    		$args['script'] = '';
    	}
    	return $args;
    }
    add_filter('rl_lightbox_args', 'custom_rl_lightbox_args');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load Scripts Only On Home Page’ is closed to new replies.