Ajax call does not work for this custom code

Instead of doing: data: {action: ‘performers’, catname: catname} Try: data: ‘action=performers&catname=”+catname; You may also want to define “catname” globally, i am not sure if scope is an issue with your ajax handler but this could be why it is not being set. As an example try to alert catname within the ajax handler above cache=false; … Read more

jQuery dialog prints HTML-Tags under WordPress

It’s sort of a longshot, but maybe try something like this: $(‘#button-setup-league’).click(function() { $( “#dialog p” ).html(‘<span>’+wpslm_v_script_vars.delete_league+'</span>’); $( “#dialog” ).dialog({ modal: true }); }); This, of course, requires “#dialog p” to be initially empty, or assumes that its contents can be replaced entirely. If not, maybe you can use the solution above but with a … Read more

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);