[theme-reviewers] Printing JavaScript in footer
Ola Łączek
ola at bodera.com
Sat Aug 3 15:45:50 UTC 2013
Hello!
I'm reviewing a theme that prints javascript in the footer from
functions.php like this:
add_action('wp_footer', 'flex_init');
function flex_init() {
echo '<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#slider").flexslider();
});
</script>';
}
Is this ok, or should I tell this person to create separate javascript
file, put this code there and enqueue like other scripts?
Best regards,
Ola Łączek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130803/a7de243c/attachment.html>
More information about the theme-reviewers
mailing list