Title: Open on certain browser possible?
Last modified: August 21, 2016

---

# Open on certain browser possible?

 *  Resolved [esucces](https://wordpress.org/support/users/esucces/)
 * (@esucces)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/)
 * Hi Danny
 * Would it be possible to trigger a box on a certain browser, eg IE 9?
 * That would be awesome 🙂
 * Cheers,
    Jan
 * [https://wordpress.org/plugins/scroll-triggered-boxes/](https://wordpress.org/plugins/scroll-triggered-boxes/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/#post-4697627)
 * Hi Jan,
 * Yes, you should be able to do such a thing by adding the following code snippet
   to your theme its `functions.php` file.
 *     ```
       function my_prefix_show_box_in_ie($show, $box_id) {
   
        	// change 123 to the ID of the box you want to show on IE only
       	if( $box_id !== 123 ) {
       		return $show;
       	}
   
       	$show = preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']);
   
       	return $show;
       }
   
       add_action('stb_show_box', 'my_prefix_show_box_in_ie', 10, 2);
       ```
   
 * Hope that sets you off in the right direction, good luck!
 *  Thread Starter [esucces](https://wordpress.org/support/users/esucces/)
 * (@esucces)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/#post-4697680)
 * Hi Danny
 * That snippet works, but ignores the defined rule of the box:
    If page is = 25,26.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/#post-4697686)
 * Hi Jan,
 * Wasn’t sure whether you wanted that. If you want to preserve the defined box 
   rules, use the following.
 *     ```
       function my_prefix_show_box_in_ie($show, $box_id) {
   
        	// change 123 to the ID of the box you want to show on IE only
       	if( $box_id !== 123 || $show === false ) {
       		return $show;
       	}
   
       	$show = preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']);
   
       	return $show;
       }
   
       add_action('stb_show_box', 'my_prefix_show_box_in_ie', 10, 2);
       ```
   
 *  Thread Starter [esucces](https://wordpress.org/support/users/esucces/)
 * (@esucces)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/#post-4697768)
 * Worked perfectly 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Open on certain browser possible?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scroll-triggered-boxes_a0af9c.svg)
 * [Scroll Triggered Boxes](https://wordpress.org/plugins/scroll-triggered-boxes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scroll-triggered-boxes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scroll-triggered-boxes/)
 * [Active Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scroll-triggered-boxes/reviews/)

## Tags

 * [Internet Explorer](https://wordpress.org/support/topic-tag/internet-explorer/)

 * 4 replies
 * 2 participants
 * Last reply from: [esucces](https://wordpress.org/support/users/esucces/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/open-on-certain-browser-possible/#post-4697768)
 * Status: resolved