Title: Search shortcode
Last modified: August 22, 2016

---

# Search shortcode

 *  Resolved [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/)
 * So I wanted just the search function of my database to show on the page. For 
   some reason, when i use [businessdirector-search] it shows up with the advanced
   search option. I just want the one box search.
    Also view listings and directory
   also show up for the above shortcode which i dont want too.
 * I want it to look like this.
 * [http://postimg.org/image/fq2g1nz85/](http://postimg.org/image/fq2g1nz85/)
 * [https://wordpress.org/plugins/business-directory-plugin/](https://wordpress.org/plugins/business-directory-plugin/)

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

 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5445913)
 * also, a shortcode to show just the directory as I cannot seem to find any. 🙁
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5445923)
 * Hi Crosswire,
 * Our search shortcode doesn’t show just single fields of search. It only shows
   the advanced search form right now, which includes the standard directory links.
 * Our full list of shortcodes is here: [http://businessdirectoryplugin.com/support-forum/faq/valid-bd-shortcodes-2-1/](http://businessdirectoryplugin.com/support-forum/faq/valid-bd-shortcodes-2-1/)
 * The directory one is on there, but it shows the directory just like the page 
   we create. I’m not sure what you mean by “just the directory” as the directory
   is a complex entity and contains lots of “stuff” that goes along with it.
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5445924)
 * Thank you. Directory meaning the part where all the categories are shown. So 
   i meant the shortcode for all categories instead of listings.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5445925)
 * Ah–I see. We don’t have a “category only shortcode” today. We have ones that 
   display the listings for individual categories, but that’s it. It’s a good suggestion
   and I’ll add it to the list for things to put into future releases.
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5445943)
 * also, can i remove the “advanced search” text from below the search bar. I want
   users to just use that one search box.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446041)
 * You can probably use custom CSS to put a “display:none” on that specific link
   using selectors. Here is an article about how to use custom CSS with Business
   Directory in a way that doesn’t get overwritten on upgrade of BD: [http://businessdirectoryplugin.com/support-forum/faq/how-to-use-custom-styles-with-bd-2-1/](http://businessdirectoryplugin.com/support-forum/faq/how-to-use-custom-styles-with-bd-2-1/)
 * There’s no setting in BD to handle it automatically, though.
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446043)
 * Ok thank you. Also, For the life of me, I can’t seen to get the this search box
   align to the left.
 * see image. [http://postimg.org/image/wyl5ger8t/](http://postimg.org/image/wyl5ger8t/)
   
   I tried firebug but only expands the text box the full width when I play with
   the css code.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446045)
 * What have you tried so far for custom CSS? It may require some experimentation,
   since each theme is very different on how it handles global styles.
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446050)
 * I created this in my child theme folder
    wpbdm_custom_styles.css and added my
   styles but the plugin doesn’t pick it up.
 * when moved the above css file to the plugin directory still doesn’t pick up.
 * using firebug, it still picks up the css code from min.css. strange.
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446051)
 * adding this moves the item to the left which i want. well when firebug shows 
   it
 * .wpbdp-bar .wpbdp-search-form {
    margin: 0 0 0 50%; **(removing the 50%)** padding:
   0 !important; }
 *  Thread Starter [crosswire](https://wordpress.org/support/users/crosswire/)
 * (@crosswire)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446054)
 * I did manage to get it to work but had to change the code right int he min.css
   file for now.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446092)
 * That !important may force the style in that search form to ignore overrides, 
   which is why you had to change it directly. We try to avoid using that !important
   element unless absolutely necessary. In this case, it may be your only solution.
   Definitely save a backup of that file, because upgrades to the plugin will cause
   it to disappear.

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

The topic ‘Search shortcode’ is closed to new replies.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/search-shortcode/#post-5446092)
 * Status: resolved