I'm trying to make the content of my Wordpress posts slide into view when the title of the post is clicked.
The code I'm using is as follows:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".entry-content").hide();
//toggle the componenet with class msg_body
jQuery(".entry-title").click(function()
{
jQuery(this).next(".entry-content").slideToggle(500);
});
});
</script>
Seems simple enough, but after implementing it all of a sudden my .entry-content class is being commented out.
Anyone seen this before?
Let me know if more details are necessary to explain! Thanks in advance!