September 15, 201511 yr Hi, The Facebook link in the footer of one of my client's websites is not working on mobiles: http://tinyurl.com/nbx58dl Any help would be really appreciated. Thanks.
September 15, 201511 yr Author I have it working now but it doesnt redirect the user to the mobile version of Facebook, is this possible?.
September 16, 201511 yr So you want mobile users to redirect to mobile version of facebook ? here is a solution for that <a href="javascript:void(0)" class="link-for-mobile">Click for mobile</a> <script type="text/javascript"> jQuery(document).ready(function($){ var isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/); $('.link-for-mobile').click(function() { if (isMobile){window.location.href = 'http://example.com';} }); }); </script> make sure jquery is already loaded in the page
Create an account or sign in to comment