twolineSTUDIO Posted November 14, 2021 Share Posted November 14, 2021 Site URL: https://www.santaspeaking.live Hello, I'm reading all of this wonderful information, as I am also trying to add multiple buttons to my navigation. However, when I tried to plug in the code (I tried a few from this thread) nothing happened 😞 What am I doing wrong? I'd like to add 2 buttons to the navigation right next to each other, that are different colors and have a little bit of padding between. Thanks so much, really appreciate you guys! Link to comment
creedon Posted November 14, 2021 Share Posted November 14, 2021 Quote I tried to plug in the code (I tried a few from this thread) nothing happened 😞 Could you point us to some of the code you were trying and didn't work? Without context it is hard to advise you. There are two main techniques I've seen. One is to use code of mine to duplicate a call to action button and assign it different titles and urls. Please see the following. Second is to change navigation links to look like buttons. I think tuanphan has done this a number of times. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
twolineSTUDIO Posted November 14, 2021 Author Share Posted November 14, 2021 Hello! Thanks so much for your quick response. That was the thread I was reading and tried your code from that, but it didn't work. I did see that tuanphan had something about changing navigation links to look like buttons but I'll have to see if I can find the code for that. Link to comment
twolineSTUDIO Posted November 14, 2021 Author Share Posted November 14, 2021 Here's the code I tried but didn't work: {         text : 'enter button text here 1',     url : 'enter url here 1'          },    {         text : 'enter button text here 2',     url : 'enter url here 2'          },  There were a few other strings of code within that thread that I tried but to no avail. Is there a difference in plugging in the code directly into the header code (from settings) as opposed to plugging it into the design/custom css section? Link to comment
derricksrandomviews Posted November 14, 2021 Share Posted November 14, 2021 There is, some code will only work in one place not the other. twolineSTUDIO 1 Link to comment
twolineSTUDIO Posted November 14, 2021 Author Share Posted November 14, 2021 It kept telling I had a syntax error on line one. I tried injecting the code in either place (Design/custom css and Settings/advanced/custom code) Link to comment
derricksrandomviews Posted November 14, 2021 Share Posted November 14, 2021 A syntax error usually means that somethlng is missing for example, could be a closing or opening brace } Link to comment
twolineSTUDIO Posted November 14, 2021 Author Share Posted November 14, 2021 Thanks for your input Derricksramdomviews Link to comment
twolineSTUDIO Posted November 14, 2021 Author Share Posted November 14, 2021 Derricksrandomviews - Right, makes sense, but that's why I was so confused. I had pasted the code exactly as Creedon had it, and I tried it in both code places. Link to comment
derricksrandomviews Posted November 14, 2021 Share Posted November 14, 2021 (edited) Look at the placement of the opening brace in the code snippet that you posted compared to Creedon's. Yours should match his exactly. Edited November 14, 2021 by derricksrandomviews Link to comment
creedon Posted November 14, 2021 Share Posted November 14, 2021 Did you follow the Quick Install instructions? Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment