jQuery is not working in blogger blogspot mobile version - issue solved
Published by Aslam
if you are wondering why your j Query code doesn't work in your blogger mobile version, here i the answer.
The problem, is that blogger loads different template for blogger for PC and mobile, you can disable it and show PC version only in any device.
this solution i for those who want to show different template but still query doesn't work for them.
whatever code and script you have in your main template, it doesn't affect blogger mobile template.
so you need to make some change to template to make it work in mobile too.
Here we go.
<b:if cond='data:blog.isMobile'>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script>
// your script
</script>
</b:if>
Place it anywhere in your template. better to place it net to the original one.
and save template. check it in your PC itself first. to do so, jut add ?m=1 at the end of your blog URL.
The edit for mobile template can be done via main template itself.
to do that, find <b:if cond='data:blog.isMobile'>
and check between that, you might find things to edit.
Comments
Post a Comment