• 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

Style search box (Outreach Pro child theme)

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 › Style search box (Outreach Pro child theme)

This topic is: not resolved

Tagged: css, search box, style

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by neilgee.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 13, 2015 at 9:35 am #140704
    annemcl
    Participant

    I'm using Outreach Pro child theme. I'm trying the make the search box smaller (horizontally and vertically), and while I figured out how to change the CSS to make the box smaller, the text within the box remains at a fixed point (it touches the bottom edge) and I can't figure out how to make the default text "Search this web site" center vertically in the new shorter box. I'd also like to change the background color of the box from white to something different, maybe a light blue. I've tinkered with the CSS related to the search form in style.css

    URL: temp.sarasotadolphin.org

    Here's the revised style sheet info with the box dimensions successfully implemented:

    /* Search Form
    --------------------------------------------- */
    
    .search-form {
    	overflow: hidden;
    }
    
    .site-header .search-form {
    	float: right;
    	margin-top: 12px;
    	background-color: #e5d177;
    }
    
    .entry-content .search-form,
    .site-header .search-form {
    	width: 35%;
    	height: 30px;
    	padding: 0;
    }
    
    .genesis-nav-menu .search input[type="submit"],
    .widget_search input[type="submit"] {
    	border: 0;
    	clip: rect(0, 0, 0, 0);
    	height: 1px;
    	margin: -1px;
    	padding: 0;
    	position: absolute;
    	width: 1px;
    }
    

    Any help on this is greatly appreciated!

    http://temp.sarasotadolphin.org
    February 13, 2015 at 8:03 pm #140803
    neilgee
    Member

    You need to address the padding in the input field... and add in a background color.

    input[type="search"] {
    padding: 6px;
    background-color: antiquewhite;
    }

    You then might want to adjust the placeholder text to complement the background color - here's a guide for reference - http://coolestguidesontheplanet.com/styling-placeholder-text-input-fields-forms-css/


    Neil Gee
    WP Beaches
    Coolest Guides

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 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