Trying to get fittext to work in WordPress

I figured it out finally, for some reason using the $ in my script just doesnt work so I had to use jQuery instead like this <script type=”text/javascript”> jQuery(document).ready(function() { jQuery(“#fittext3”).fitText(1.8, { minFontSize: ’12px’, maxFontSize: ’75px’ }); }); </script>

Multiple widgets in wordpress

Try to generate your div to have a value that makes clear what kind of content it loads, for example: <div class=”social-count” role=”facebook”></div> <div class=”social-count” role=”twitter”></div> Then, via jQuery, change them by that value, for example: $(‘.social-count[role=”facebook”]’).html(count); $(‘.social-count[role=”twitter”]’).html(count);

WordPress video end function [duplicate]

You can track the state of the youtube video, do you have the link to the youtube video? Use this youtube API function to get the result, and if it hits you back with a “0” you can initiate the alert(); function player.getPlayerState():Number Returns the state of the player. Possible values are unstarted (-1), ended … Read more

Search results load individual post in slide out div

Since you wanted best-practices, methods, advice, here is my take on how you should proceed: First of all, divide the content of your page in two ideal spaces, the list of posts, and the content. Something like this: <nav class=”post-navigation”> <ul> <li> <h2>{Post title}</h2> <p>{Excerpt} [&hellip;]</p> <p><a href=”https://wordpress.stackexchange.com/questions/87312/{post-permalink}”>Read more &rarr;</a></p> </li> </ul> </nav> <section class=”post-content”></section> … Read more