Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

functions.php1

wp_register_script( 'en-us', get_template_directory_uri() .'/js/en-us.js');
wp_enqueue_script( 'en-us');

header.php

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/bramstein/hypher/master/dist/jquery.hypher.js"></script>

<script type="text/javascript">
       jQuery(document).ready(function($)
{
      $(function() {
      $('p').hyphenate('en-us');
        });
    });
</script>

.p{color:#fff; text-align: justify;}

This only works for Firefox, but not for IE and Chrome. The strange is that when i create simple index.html works. What i am doing wrong?

Thanks in advanced.

share|improve this question
    
What are the console errors? –  s_ha_dum Aug 31 '13 at 15:37
    
i didn't have any console errors. –  MikeD Sep 1 '13 at 2:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.