WordPress.org

Ready to get started?Download WordPress

Forums

FitText.js, a jQuery plugin for inflating web type
Headlines Not Responding? (2 posts)

  1. cartar929
    Member
    Posted 1 year ago #

    I installed this plugin and can't seem to get it to do anything?

    Here is what I have in the header.php file in the head section:

    <script>
      $("#responsive_headline").fitText(1.2);
    </script>

    I tried using multiple versions of what was mentioned in the installation section but I didn't get any results.

    Also here is what the headers look like in my css file:

    h1,h2,h3,h4,h5,h6 {
        font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
        font-weight: bold;
        font-style: normal;
        color: #222;
        text-rendering: optimizeLegibility;
        line-height: 1.1;
        margin-bottom: 14px;
        margin-top: 14px;
    	display:block;
    	width:100%;
    }

    Here is the site where I am trying to get this to work:
    http://responsive.franklinstreetwebserver.com/

    If you have any thoughts on what I should try differently please let me know.
    Thanks,
    Carter

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

  2. sara cannon
    Member
    Posted 1 year ago #

    try changing

    <script>
      $("#responsive_headline").fitText(1.2);
    </script>

    to

    <script type="text/javascript">
         jQuery(document).ready(function() {
             jQuery("#responsive_headline").fitText(1.2);
         });
    </script>

Topic Closed

This topic has been closed to new replies.