• 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

MetroPro search bar in pri-nav

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 › MetroPro search bar in pri-nav

This topic is: resolved

Tagged: bar, Metro, nav, search

  • This topic has 4 replies, 3 voices, and was last updated 8 years, 9 months ago by Albert.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 29, 2014 at 4:04 pm #107370
    Albert
    Member

    Hi there

    I have been tuning my website the whole night, but I just can't solve the 3 problems.
    It's the bloody Search Bar that I put in the primary-navigation menu on the right side.

    First: There is a weird grey border square border around it, I want to get rid of it.
    Second, In IE the text "search this website" isn't visible.
    Third: How can I change this text, can't find it anywhere in the code.

    Any helping hands out there?

    Cheers,

    http://ahvenema.nl/
    May 30, 2014 at 12:23 am #107427
    JanHoek
    Participant

    The gray "border" is coming from the background-image

    .search-form input[type="search"] {
    	background: url(images/search.png) no-repeat 15px 16px;
    	padding: 16px 16px 16px 44px;
    	border: 0;
    }

    and this style

    /* Forms
    --------------------------------------------- */

    input,
    select,
    textarea {
    	background-color: #f5f5f5;
    	border: 1px solid #ddd;
    	box-shadow: 0 0 5px #ddd inset;
    	color: #999;
    	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    	font-size: 14px;
    	padding: 16px;
    	width: 100%;
    }

    To change the text you can put this in your functions.php

    //* Customize search form input box text
    add_filter( 'genesis_search_text', 'sp_search_text' );
    function sp_search_text( $text ) {
    	return esc_attr( 'Search my blog...' );
    }

    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    May 30, 2014 at 1:01 pm #107540
    Albert
    Member

    Found it, the IE problem is solved as well.

    Thanks,

    June 11, 2014 at 11:14 am #109369
    santoki
    Member

    I want to replace the search bar in the primary header with a phone number. The only way I could think to do it was to make an image and place it there using a standard text widget. However, I can't get it to align to the right as the default search bar does.

    Any recommendations?

    http://www.gtawestliving.com

    August 21, 2014 at 9:48 am #120234
    Albert
    Member

    I see your problem is fixed? If not, open a new topic with your question. You get help faster.
    Il mark this topic as Solved.

    [solved]

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘MetroPro search bar in pri-nav’ is closed to new 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