Title: Hide shortcode on mobile device
Last modified: August 20, 2016

---

# Hide shortcode on mobile device

 *  [robbertbrouwers](https://wordpress.org/support/users/robbertbrouwers/)
 * (@robbertbrouwers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hide-shortcode-on-mobile-device/)
 * Hi all,
 * I’m looking for a solution to the following problem:
 * I’ve installed a linkedin plugin, which pulls recommendations from linkedin and
   shows them in a slider, which is defined by the following shortcode:
 * **[li_recommendations width=”720″ length=”200″ interval=”6500″]**
 * The plugins works on PC screens and Tablet (tested on mac + sharp tv screen and
   ipad) however, on my phone it will make the screen wide enough to show the full
   720px slider. Which – of course- messes up the screen.
 * I’m looking for a solution similar to what is posted here: [http://wordpress.org/support/topic/override-shortcode-for-mobile-theme-1?replies=7](http://wordpress.org/support/topic/override-shortcode-for-mobile-theme-1?replies=7)
 * But then for the twentytwelve, rather than -some- mobile theme. I’m a little 
   where/what to change, since -correct me if i’m wrong- there is no specific mobile
   theme in twentytwelve because it’s responsive.
 * Thanks for your attention, much appreciated!

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

 *  [kpenn](https://wordpress.org/support/users/kpenn/)
 * (@kpenn)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hide-shortcode-on-mobile-device/#post-3573120)
 * Did you try setting the width to 100% instead of 720px so it would scale down
   when in responsive mode?
 *     ```
       [li_recommendations width="100%" length="200" interval="6500"]
       ```
   
 *  Thread Starter [robbertbrouwers](https://wordpress.org/support/users/robbertbrouwers/)
 * (@robbertbrouwers)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/hide-shortcode-on-mobile-device/#post-3573122)
 * I replaced the code, and the result is that the shortcode will produce a different
   result, with recommendations placed next to each other, in stead of of slider:
 * [http://hbusiness.nl](http://hbusiness.nl)

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

The topic ‘Hide shortcode on mobile device’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwelve/4.8/screenshot.png)
 * Twenty Twelve
 * [Support Threads](https://wordpress.org/support/theme/twentytwelve/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwelve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwelve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwelve/reviews/)

## Tags

 * [hide](https://wordpress.org/support/topic-tag/hide/)
 * [mobile](https://wordpress.org/support/topic-tag/mobile/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [robbertbrouwers](https://wordpress.org/support/users/robbertbrouwers/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/hide-shortcode-on-mobile-device/#post-3573122)
 * Status: not resolved