It was brought to my attention that either the code syntax highlighter I use, or perhaps Word Press itself (I'm inclined to think the latter actually) was converting all of the single quotes in my code samples to curly quotes, thus causing problems for anyone who attempted to copy, paste and then run the Javascript code.
I believe I have found a work-around for this issue, and I apologize for any inconvenience it may have caused anyone.
I've also removed restrictions on comments (you no longer need a WordPress account in order to post), so comment away!
3 Responses
Hey Stchur,
So what would be the exact code?
Can you attach a text file on the same so that user can take out the exact code out of it.
I know many of people would be getting the same issue every now and then.
Mohammed Arif
Site Developer
Mohammed,
I wouldn't consider myself a WordPress expert by any means, so this might not be the best way to do it.
But all I did was comment out (but putting // in front) the line:
add_filter('the_content', 'wptexturize');
in the default-filters.php file.
Hope this helps, and if anyone knows a more appropriate way, please do share!
Very nice!!