Jump to content

Left Side bar with anckor links • Squarespace 7.1

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

17 hours ago, PoupeeFlash said:

Site URL: https://www.bobcat-bluebird-adgs.squarespace.com

Hello, 

Do you guys got any custom code to add a left side bar with anckor links to a squarespace 7.1 website like in this example? https://www.lepiceriedesenvirons.com/

Thanks in advance for your help !

 

N.

Capture d’écran 2022-06-21 à 15.06.26.png

I think combining the sticky position and anchor link can achieve this feature

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 6/23/2022 at 4:33 PM, PoupeeFlash said:

Oh yes ! Thanks !

Do you think about any code that I could use?

For now I am just using a text link block to create this side bar.

N.

I think you can use text link then we will use code to make it sticky & float on left side. What do you think? Can you share link to page where you added text links?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
22 hours ago, PoupeeFlash said:

Hey!

What do you need as my website is private still?

N.

Hi. You can setup an access password & share url

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Hey I finally almost made it !

My only issue now is that I want my sticky menu to start appearing only under my first homepage section (like in this homepage https://www.lepiceriedesenvirons.com/)  For now it appears in my header…

Here is my code :

<!DOCTYPE html>
<html>
<head>
<style>

.stickymenu {
    width: 100%;
    background-color: none;
    top: 0px;
    position: fixed;
    left: auto;
    z-index: 1;
    margin-left:-25vw;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color:#334F55;
    position: fixed;
}

.stickymenu {
    list-style-type: none;
}

.stickymenu {
    float: left;
    width: 10%;/*100% divisé par le nombre d'éléments de menu*/
    text-align: left;/*Centre le texte dans les éléments de menu*/
}

/*Evite que le menu n'ait une hauteur nulle*/
.stickymenu::after{
    content: "";
    display: table;
    clear: both;
}

.stickymenu a{
    display: block; /*Toute la surface sera cliquable*/
    text-decoration: none;
    color: black;
    border-bottom: 2px solid transparent;/*Evite le décalage des éléments sous le menu à cause de la bordure en :hover*/
    padding: 10px 0px;/*Agrandit le menu et espace la bordure du texte*/
}

.stickymenu a:hover{
background-color:#CCB92C;
}

</style>
</head>
<body>
<nav class="stickymenu">
  <ul>
    <li><a href="#">Sélection Fraîcheur</a></li>
    <li><a href="#">Tenter le Zéro déchet</a></li>
    <li><a href="#">Des petits producteurs</a></li>
 </ul>
</nav>
</body>
</html>

Capture d’écran 2022-06-30 à 16.44.13.png

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.