Price, Beds, Baths, For Sale / All Types Buttons

  • Updated

If you are using a search bar widget on your homepage, or another page on your website, (other than your default search page) you may want to update the look. The buttons for Price, Beds, and Baths, as well as the For Sale / All Types button (if you are using the Advanced Search) can be updated using custom code.

Screen_Shot_2022-03-08_at_3.28.52_PM.png

However, If you want to change the color of your default search form, this can be easily updated in your design settings

Customization Options

  • If the standard dark gray color of the button do not match your theme or brand, you can change the background color.

    Here is an example making the background color of the buttons blue:

    Screen_Shot_2022-03-08_at_3.37.18_PM.png

    *To change the background color of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    background-color: #hexcode !important;
    }

     

  • The buttons by default has a 1px border set, however, you can adjust this if you like. You can make a border look many different ways.  '1px' sets the thickness of the border and 'solid' defines the style of the border. 

    Here is an example of a 5px solid border:

    Screen_Shot_2022-03-08_at_3.38.05_PM.png

    *To change the border of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    border
    : 5px solid !important;
    }

  • You can also change the color of the border. 

    Here is an example of a yellow border:

    Screen_Shot_2022-03-08_at_3.38.46_PM.png

    *To change the border-color of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    border-color#1acb98 !important; 
    }

  • Border-radius changes the squareness of the button. The higher the number, the more round the button will be. The default is set to 3px. 


    Here is an example of the border radius set to 20px:

    Screen_Shot_2022-03-08_at_3.39.43_PM.png

    *To change the border-radius of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    border-radius: 20px !important;

     

  • The button by default does not have a shadow around the bottom of the button.  The first number sets the shadow directly under the button. The first '1px' sets the size of the shadow. The second '1px' sets the fade of the shadow and the hexcode sets the color.

    Here is an example of the box-shadow set to 0 7px 7px #febe0f:

    Screen_Shot_2022-03-08_at_3.41.05_PM.png

    *To change the box-shadow of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    box-shadow0 7px 7px #febe0f !important;
    }

  • The default text or font color is set to white.  The "color" line indicator of the code designates font color, and would be important to note if you changed other colors of the button.

    Here is an example of the text color to green:
    Screen_Shot_2022-03-08_at_4.00.41_PM.png

    *To change the font color of the buttons:
    .sidx-container .sidx-searchform .sidx-basic .sidx-field {
    color: #hexcode !important;
    }

Applying Multiple Changes

If you were to use all of the above properties to update your button, your code may look like this when placed into your design settings:


.sidx-container .sidx-searchform .sidx-basic .sidx-field {
padding: 25px 15px !important;
border-radius6px !important;
box-shadow0 7px 7px #1acb98 !important;
background#1acb98 !important;
color#ffffff !important;
border1px solid !important;
border-color#febe0f !important; 
}

 

Tip

Place the desired code(s) in the Custom CSS box under Settings > Design. You must clear your caches, then check your web page in an incognito browser to see the change!

 

Warning: Showcase IDX may make future updates to the product which may break previously acceptable CSS code, causing that section on your website to look unusual.  If you've noticed your site not looking as expected, please return to this article for the updated CSS code.

If you are inexperienced with CSS, we suggest you turn to your developer as they will be the best contact person for CSS related questions and concerns.  We are not developers and provide this baseline CSS for agents and developers experienced in coding.