New Landing How can we help? Themeforest Theme Support Flexform IE9 and Prior Placeholder Text

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Flexform
  • #26971
    fumblepigskin
    Member
    Post count: 21

    Hi-

    As you may know, IE9 and prior does not support placeholder text in inputs or textareas. Well, someone developed a solution, which I have been able to get to work a number of times on other wordpress installations, but I can’t seem to get it to work with Flexform.

    https://github.com/mathiasbynens/jquery-placeholder
    It is easy to do, but I can’t seem to get it to work. Can you help? Thanks!

    #26979
    fumblepigskin
    Member
    Post count: 21
    This reply has been marked as private.
    #26982
    fumblepigskin
    Member
    Post count: 21

    Okay, so I got it to work. But this is not a good solution. I had to paste all of the following under my tracking code in the Theme Options. I am not sure why, but I have to reload jquery to make this work.

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="wp-content/themes/flexform/js/jquery.placeholder.js"></script>
    		<script type="text/javascript">
    $( document ).ready(function() {
    alert( "This is an alert test" );
    $('input, textarea').placeholder();
    });
    </script>
    #27100
    fumblepigskin
    Member
    Post count: 21

    Okay, found a better solution.

    http://jamesallardice.github.io/Placeholders.js/

    added that file and included the following below my google tracking code
    <script type="text/javascript" src="wp-content/themes/flexform-child/js/placeholder.js"></script>

    Since the flexform theme features forms without labels (subscribe dropdown in the top menu on your demo site) you might consider including either this fix, or something else to ensure IE9 and prior users can see placeholder labels.

    cheers

    #27634
    Melanie – SUPPORT
    Member
    Post count: 11032

    Thanks for the heads up, I’ll let the developer know about this to consider!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register