• 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

Search Widget Custom 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 › General Discussion › Search Widget Custom CSS

This topic is: not resolved

Tagged: Agentpress Pro, Agentpress Pro Search Widget

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by jtskie.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 17, 2014 at 10:41 am #131865
    jtskie
    Member

    Hi there, I would like to know how to customize the css for a widget that I use on my agent press pro theme. I would like to get the sold press search widget to look like the agent press search widget. my site is located at http://www.jeremytaylorhomes.com. If someone could help explain how to do this or if someone knows someone that could customize it for me that would be great.

    I look forward to getting some help.

    Jeremy

    http://www.jeremytaylorhomes.com
    November 17, 2014 at 8:14 pm #131927
    Tom
    Participant

    Hi Jeremy,
    ( Happy to help out someone local! )

    This block of code should be placed at the very bottom of your child theme stylesheet. For mobile devices (for widths of 680px and less) the format reverts to stacked presentation,

    .sp  {position: relative;} 
    
    .sp input[type="submit"].btn {
        width: 100%;
        background: #51c024;
        padding: 15px;
    	margin-top: 30px;
    }
    
    #soldpresssearchwidget-6 .widget-title {
    	margin-bottom: 30px;
    }
    
    .sp select, 
    .sp label,
    .sp .btn-block {
        width: 25%;
        margin-right: 0px;
    }
    
    #sp_minprice,
    #sp_maxprice,
    #sp_bedrooms {
        position: absolute;
        top: 25px;
    }
    
    label[for=sp_minprice], 
    label[for=sp_maxprice],
    label[for=sp_bedrooms]    { 
        position: absolute;
        top: 0px;
    }
    
    #sp_minprice,
    label[for=sp_minprice] {
        left: 25%;
    }
    
    #sp_maxprice,
    label[for=sp_maxprice] {
        left: 50%;
    }
    
    #sp_bedrooms,
    label[for=sp_bedrooms] {
        left: 75%;
    }
    
    @media only screen and (max-width: 680px) {
        
        .sp select, 
        .sp label,
        .sp .btn-block {
            width: 100%;
        }
            
        #sp_minprice,
        #sp_maxprice,
        #sp_bedrooms, 
        label[for=sp_minprice],
        label[for=sp_maxprice],
        label[for=sp_bedrooms] {
            position: relative;
            left: 0;
            top: 0;
        }
        
    }

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    November 17, 2014 at 8:35 pm #131934
    jtskie
    Member

    Thanks so much for that, I like that better, but what I would really like is for it to display like the one on the theme demo?

    Jeremy

    November 18, 2014 at 11:26 am #132009
    Tom
    Participant

    That's not going to be possible due to the design of the Sold Press widget interface. The SP search selectors (drop-down lists) do not contain the selector labels; they are placed outside of the selectors (and in a kind of awkward way). Unless the SP plugin has an option to change this, I think the only way one might attempt to change the presentation to match the AgentPress search widget is to hack the plugin, and that opens the door to all kinds of problems with updates. The styling might be tweaked a little more, but that's not going to make it look exactly like a different search widget.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    November 27, 2014 at 9:32 am #132999
    jtskie
    Member

    Thanks Tom,

    I moved it to a different section and am happy with it now, but there is one thing I would like to see if I correct. The text on the search button is greyed out until you put your cursor over it, how do I change it to show black text?

    http://www.jeremytaylorhomes.com

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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

© 2023 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