• Tech4Eleven

    (@tech4eleven)


    I decided to go with this plugin and update the actual jquery.fittext.js file to the latest version, mainly because it registers it in the functions file for me. but how do you use this? do I have to still put `script>
    $(“#responsive_headline”).fitText();
    </script>`
    in the header? then, how do I make it work for, say, my h1s? can I just use it on demand and not for all my h1s?

    http://wordpress.org/extend/plugins/fittext/

Viewing 1 replies (of 1 total)
  • Thread Starter Tech4Eleven

    (@tech4eleven)

    well not knowing what Im doing I put this in my widget

    <div style="background-color:#BBC34C; text-align:center; padding:20px;"><h1 id="fittext2">ICE CREAM</h1></div>
    
    <script type="text/javascript">
         jQuery(document).ready(function() {
             jQuery("#fittext2").fitText();
         });
    </script>

    and it works. my site is responsive using twitter bootstrap so right now the text is about 60px on the desktop but very very small when on my iphone. how can I make it fill the div no matter what?

Viewing 1 replies (of 1 total)
  • The topic ‘How to use this’ is closed to new replies.