Jump to content

Add some info and links to bottom of Overlay MENU on mobile

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 10
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Add this to Bottom of Code Injection > Footer

<script>
  $(document).ready(function(){
    $('<div class="mobile-custom-info"><p><a href="https://Instagram">Instagram</a><p><p><a href="mailto:abc@gmail.com">Email</a><p></div>').insertBefore('.header-menu-actions.social-accounts');
});
</script>
<style>
  .mobile-custom-info a {
    font-family: var(--site-navigation-font-font-family);
    margin-left: 5vw;
}
</style>

image.png.8dbce5bd930f51ddaacf346290daa020.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

You can change this code

<style>
  .mobile-custom-info a {
    font-family: var(--site-navigation-font-font-family);
    margin-left: 5vw;
}
</style>

to this

<style>
  .mobile-custom-info a {
    font-family: var(--site-navigation-font-font-family);
    margin-left: 5vw;
    font-size: 17px !important;
    margin-bottom: 20px;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Solution

I forgot an attribute, use this

<style>
  .mobile-custom-info a {
    font-family: var(--site-navigation-font-font-family);
    margin-left: 5vw;
    font-size: 17px !important;
}
  .mobile-custom-info p:nth-child(2) {
    display: block !important;
    margin-top: 40px !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.