Title: If_Theme Query?
Last modified: August 20, 2016

---

# If_Theme Query?

 *  [robpachasa](https://wordpress.org/support/users/robpachasa/)
 * (@robpachasa)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/if_theme-query/)
 * Ok, I’m having a hard time learning Queary codes. I’m using WidgetLogic (great
   plugin!) and I need to figure out how to set one of them not to show on my mobile
   theme.
 * So if my theme is “YCSMNews2Mobile” my query should be: “!if_theme_YCSMNEWS2MObile()”???

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/if_theme-query/#post-2382831)
 * the only theme conditional tag I know of is the ‘theme supports’ one, which may
   be no use to you. You might be better off using get_bloginfo()…
 * [http://codex.wordpress.org/Function_Reference/get_bloginfo](http://codex.wordpress.org/Function_Reference/get_bloginfo)
 * something like
 * return get_bloginfo(‘template_directory’,’raw’)==’[http://www.example.com/home/wp/wp-content/themes/my_mobile_theme_folder&#8217](http://www.example.com/home/wp/wp-content/themes/my_mobile_theme_folder&#8217);

Viewing 1 replies (of 1 total)

The topic ‘If_Theme Query?’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/if_theme-query/#post-2382831)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
