• 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

Shorten Google Custom Search Box

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 › Shorten Google Custom Search Box

This topic is: not resolved

Tagged: box, code, custom, google, k9s, king, kingk9s, length, search, shorten

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 8 months ago by Christoph.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 20, 2014 at 10:17 am #134958
    lancegoodie
    Member

    On my site, KingK9s.com, I have a custom Google search box. There is on that I put on the front page of my site. The problem is, the search box is "too" wide for my liking. Is there a way to "shorten" the search box to a length of my choosing?

    Thank you for any help.

    http://www.kingk9s.com/
    January 5, 2015 at 9:57 pm #136161
    Christoph
    Member

    Hi,
    around line 357 of the style.css you'll find

    input, select, textarea {
        background-color: #FFF;
        border: 1px solid #DDD;
        border-radius: 0px;
        color: #777;
        font-size: 16px;
        font-weight: 300;
        line-height: 1;
        padding: 20px;
        width: 100%;
    }

    Change the width to the percentage that looks good to you.
    If you wanted to change the height of the box, you can adjust line-height.

    Caution, those changes will affect all input fields.

    To only affect the search box, you could try to add something like

    .cse-search-box .input {
    width: 50%;
    line-height: 2;
    }

    to the style.css .


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • 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

© 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