Need conditional tag that detects presence of WP search box
-
I’m working on a theme update and need some kind of tag or if/else that can determine if the search box is present on the page already and only display the code for the second box if it isn’t. This way the search box will only appear once per page. Anyone have any ideas?
-
-
-
Here it is if anyone has any thoughts. I think it would be a great conditional tag for WP to support in core: http://wordpress.org/support/topic/need-conditional-tag-that-detects-presence-of-wp-search-box
-
-
WordPress has different flavors, and no substitutions. Auxclass gave you good advice: above. You are in the wrong forum:
- The topic ‘Need conditional tag that detects presence of WP search box’ is closed to new replies.