• 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

placeholder text not visible in ie8

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 › placeholder text not visible in ie8

This topic is: not resolved

Tagged: jquery

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by TGScreative.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 29, 2014 at 10:08 am #107313
    TGScreative
    Member

    In IE8 placeholder text is not visible. Since the default Search widget uses placeholder text, in IE8 it just looks like an empty box. I saw this solution using jquery I beleive at http://docs.tinyfactory.co/jquery/2012/12/18/HTML5-Placeholder-In-ie7-and-ie8-fix.html. Could someone give me instructions how to include this code in the theme?

    http://bpccounseling.com/
    May 29, 2014 at 11:31 pm #107418
    neilgee
    Member

    I normally use this javascript file - http://jamesallardice.github.io/Placeholders.js/ you just need to add it to your theme - add the file as placeholder.js in your js folder of your child theme - then in functions.php add:

    //Add javascipts to theme
    function genesischild_scripts_styles() {
    	wp_register_script ( 'placeholder' , get_stylesheet_directory_uri() . '/js/placeholder.js', array( 'jquery' ), '1', true );
    	wp_enqueue_script( 'placeholder' );//version 3.0.2
    }
    add_action( 'wp_enqueue_scripts', 'genesischild_scripts_styles' );

    Neil Gee
    WP Beaches
    Coolest Guides

    May 30, 2014 at 10:08 am #107495
    TGScreative
    Member

    Thanks Neil! Works like a dream

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