• FITF

    (@ddobbertin)


    I have been trying to remove the default “Search…” text that is set as the input placeholder but to no avail. I am using this Snippet.

    I’ve tried finding some other examples in the forum…maybe I’m not searching properly. Unfortunately my client requires that the site stay in maintenance mode until it is approved so I cannot share a link.

    I have the latest version of customizer installed, using a child theme, WP 3.9.1. Any help would be appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The snippet contains:

    /* The "Search for" text is needed for screen readers, but we move it off screen, so we won't see it */
    .my-nav-menu-search .search-form .screen-reader-text {
        position: absolute;
        left: -9999px;
        overflow: hidden;
    }

    Maybe try display: none; to remove, but I’m sure @ef will chip in as it’s @efs snippet.

    No, don’t display none there. That’s the text used by screen readers for partially sighted etc.

    This post explains how to change it: http://wordpress.org/support/topic/editing-the-search-widget-1

    Thread Starter FITF

    (@ddobbertin)

    I was trying to find that searchform.php file but doesn’t seem like Customizr had one. Is there a specific directory within the Customizr child theme it needs to be in? Or will the root of the child theme suffice?

    I hadn’t realized that was what a screen reader was for. I would imagine my client knowing this would want to keep it in there.

    I will try this in a few hours and post my results. Thank you for the prompt responses!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Search Form Placeholder’ is closed to new replies.