javascript - Putting JQuery into PHP file -
i trying put jquery php file. need put twitter feed works when put html file cant work in homepage.php file.
it this tutorial.
i have created seperate javascript file , tried echo script having no luck.
here php file:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.twitter.feed.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#twitter-feed').dctwitterfeed({ id: '#thepaulmac', tweetid: 'thepaulmac', retweets: false, replies: false, avatar: false, results: 20, images: 'small' }); }); </script> <?php get_header(); ?> <div id="twitter-feed"></div>
does know have work?
i'd appreciate help.
with php can add html before html link before
<?php
or after
?>
and interpreted normal html. use
<script src="file goes here">
to link jquery script, , put code in:
<script></script>
Comments
Post a Comment