I am experiencing a strange issue with my Meta Slider on the homepage and I can't figure out why. Every time I add a certain code snippet, my drop-down text feature starts working but the Meta slider disappears. However, as soon as I remove the code, the Meta slider starts functioning properly again.
Currently, I have the code running within a text/HTML WordPress textbox widget and I have the jQuery update plugin enabled. Interestingly, the problem does not seem to be related to jQuery as removing the code still affects my Meta Slider.
<html>
<style>
ul {
margin: 0;
padding: 0;
}
ul li {
margin: 0;
padding: 0;
list-style: none;
}
ul li a {
color: blue;
}
ul li div {
display: none;
}
</style>
<body>
<ul id="read_more">
<li>
<p>Read more</p>
<div>Death</div>
</li>
</ul>
<script>
$(function() {
$('#read_more li p').each(function() {
$(this).click(function() {
$(this).siblings('div').slideToggle(300);
});
});
});
</script>
</body>
</html>