Mobile Footer: Sticky?
-
Is there a way within this theme that I can create a footer that only displays on the mobile version of my website just like this one?
Goal mobile footer./My site: RBIfixit.com
I’d like my customers to be able to call me with the same level of ease.
Viewing 2 replies - 1 through 2 (of 2 total)
-
Hello there,
In order to achieve that objective, could you please try to do the following?
1. Install and activate the Header and Footer Scripts plugin. Go to Settings > Header and Footer Scripts.
2. Paste the following to the “Scripts in header:” box
<style> #mobile-footer{ display: none; } #mobile-footer{ position: fixed; bottom: 0; left: 0; right: 0; text-align: center; background-color: #334C90; color: white; display: none; z-index: 1000; font-size: 24px; padding: 20px 0; } #mobile-footer a{ font-weight: bold; display: block; color: #fff; } @media only screen and (max-width:560px){ .site{ margin-bottom: 30px; } #mobile-footer{ display: block; } .go-top.show { bottom: 76px; } } @media only screen and (max-width:339px){ .site{ margin-bottom: 0; } } </style>
3. Paste the following code into the provided “Scripts in footer:” box
<script> (function($){ var mobileFooter = '<div id="mobile-footer">'+ '<a href="tel:+12063677663">'+ '<i class="fa fa-phone"></i>(206) 367-7663'+ '</a>'+ '</div>'; $('body').append(mobileFooter); })(jQuery); </script>
4. Save settings
You would need to clear your web browser’s cache before reloading your site.
Regards,
KharisThank you! It worked wonderfully.
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Mobile Footer: Sticky?’ is closed to new replies.