jQuery is not working in 2.7 install
-
Hello,
I have been trying for some time now to get jQuery working in my install of 2.7. This is my first time using WordPress.
I have looked at every article and tried every solution they offer and nothing works. I have downloaded and tried several themes that use jQuery and they don’t work either. I have tried referring them to my main assets file (outside of my WP folder) as well as in the includes folder and the theme folder.
I tried the noconflict script, I tried the enqueue – pretty much everything I could find both here and Google! And all I want to do is have nice, aliased rounded corners!!
Here is a snippet that works just fine in the main site (html, not php) to give an idea of what I am doing.
<script src=”assets/jquery/jquery-1.2.6.min.js” type=”text/javascript”></script>
<script src=”assets/jquery/jquery.curvycorners.packed.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(document).ready(function() {
$(‘.5radius’).corner({
tl: { radius: 5 },
tr: { radius: 5 },
bl: { radius: 5 },
br: { radius: 5 },
antiAlias: true,
autoPad: true,
validTags: [“div”] });
});
</script>
<script type=”text/javascript”>
$(document).ready(function() {
$(‘.sidebarbox’).corner({
tl: { radius: 5 },
tr: { radius: 5 },
bl: { radius: 5 },
br: { radius: 5 },
antiAlias: true,
autoPad: true,
validTags: [“div”] });
});
</script>Thanks for any help!!
Jeff
- The topic ‘jQuery is not working in 2.7 install’ is closed to new replies.