• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Winning Agent Search Bar CSS

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Winning Agent Search Bar CSS

This topic is: not resolved

Tagged: child theme, css, padding, search bar, winning agent

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 1 month ago by Tonya.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 10, 2014 at 11:23 pm #123868
    eeennnstan
    Member

    Hi, I am trying to get my site's search bar to look like the demo site's search bar (http://my.studiopress.com/themes/winning-agent/#demo-full.

    However, no matter what I try I can't successfully add padding to the <select> elements to make them jumbo size like they are on the demo. I've compared CSS between the two and can't see where I'm going wrong.

    Thanks a bunch for assistance!

    http://iswebsolutions.com/labs/montgomeryandco
    September 11, 2014 at 2:00 am #123886
    Tonya
    Member

    Hi,

    The select size is actually determined by the content within the options themselves. On the demo, click on the select and see how the window is sized to the longest item in the dropdown list.

    With that being said, you can force a width by doing this on line 2643 of your style.css file:

    #property-search-2 select{min-width: 150px;}

    I picked a random number of pixels. You can also target the individual select element by doing select#price for the price one for example.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 17, 2014 at 11:34 pm #124855
    eeennnstan
    Member

    Tonya, thanks so much for the reply!!

    I'm sorry but I messed up on the link that I sent. The design I want to replicate is actually at http://my.studiopress.com/themes/agentpress/#demo-full (I thought this was what I was purchasing but I guess not..).

    Anyway, if you see they have uniquely styled dropdown menus. I checked the CSS but couldn't see where the styling is for this and haven't seen dropdowns like this before.

    Thanks for your help (and patience with me 🙂

    September 18, 2014 at 1:11 pm #124943
    Tonya
    Member

    Ahha that helps. If you are editing directly in your style.css file, then follow along with these changes:

    1. Go to line 2643 and comment out lines 2643 through 2647 as follows:

    /*
    #property-search-2 select{width: auto !important;}
    #property-search-2 form{/*background-color:#339933;*/}
    #property-search-2 select.agentpress-taxonomy{margin: 0 10px;}
    #property-search-2 form#searchform{text-align:center;padding: 25px 0;} 
    */

    2. At the end of the file, insert these styles:

    #property-search-2 input,
    #property-search-2 select {
    	border: medium none;
    	margin: 5px;
    	width: 23.375%;
    	-webkit-appearance: none;
    }

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble