Jump to content

Can I get a social link to appear on mobile only?

Recommended Posts

Site URL: https://www.eatdoshi.com/

Hello! I chose to have a social icon appear on the top navigation in my Brine site. However, it does not appear on mobile. Squarespace support has informed me that there is no official way to get it to appear on the mobile nav. If that is the case, I would like one of the following options:

1. For the social link icon to appear in the mobile menu also

2. For the social link to appear in the footer on mobile only. (Right now it is in the header and footer on desktop, which is not ideal.) Is there a way to create content that appears on the mobile site only?

Thank you!

Link to comment
  • Replies 2
  • Views 327
  • Created
  • Last Reply

Hi,
There is almost nothing that you say it can't be done!

Use this code in Design -> Custom CSS

@media screen and (max-width: 640px){
.Header--top,[data-nc-base="header"] [data-nc-group="top"] {
    display: block;
    padding: 0;
}
.enable-load-effects .Site.loaded .Header [data-nc-container="top-left"],[data-nc-base="header"] [data-nc-container="top-right"] [data-nc-element="primary-nav"],[data-nc-base="header"] [data-nc-container="top-right"] [data-nc-element="secondary-nav"]{
    display: none;
}

[data-nc-base="header"] [data-nc-container="top-right"] [data-nc-element="social"] {
    position: absolute;
    top: 24px;
    right: 70px;
}
}

Please use the like button if it helps you!

Best,
Leopold

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.