Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to apply text styles on a JavaScript Code?


joaop2020

Question

Hello, 

I am using SquareSpace 7.1, and I wanted to have two vertical menu as you can see bellow:

701631143_Capturadeecra2020-11-22as00_27_00.thumb.png.8fb1b6232299c88119169f204a0fcedb.png

The left side menu in yellow I used CSS coding to place my navigation like that, which I can change the text color to different pages background. 

To create the 2nd vertical menu, I have followed the steps from this blog: 

https://ryandejaegher.com/add-fixed-vertical-navigation-to-squarespace/

Which tells me to Code Inject a JavaScript with #link to the pages, as you can see bellow:

358014259_Capturadeecra2020-11-22as00_27_27.thumb.png.6259b59ed7c5a3c2632386c3893b2222.png

 

But now I want to apply styles to the text on the left side menu, such as colors and margins. 

How can I apply the styles to my right side vertical-nav, and also be able to switch styles to different pages?

Or is there any other easier way to create two different vertical menus using only CSS? 

 

I appreciate a lot for your help!

Thank you!

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

Create an account or sign in to comment

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


×
×
  • Create New...