Jump to content

Second button on the Top-Right of the Page the Header

Recommended Posts

Posted

Site URL: https://dragonfly-koi-pbjx.squarespace.com/config/pages/website-tools/custom-css

Dear All, 

 

A recurring theme... I have tried all possible code but I always get an error on the syntax.

I am currently using this code to add a second button on the Header. HOWEVER, it pops on the left hand side of the Header vs. I want a new button on the Right hand called "BUY" side next to "BOOK". How do I solve this?

 

div.header-nav-item:last-child>a {
    background-color: #360A05;
      font: 16px Poppins;
    color: #FFFFFF !important;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 9.6px;
    padding-bottom: 9.6px;
    border-radius: 115px;
      text-decoration:none;
}

  • Replies 10
  • Views 410
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi @Paoletta.

Could you make your website password-protected and share the password with me so I can take a look? You can follow these instructions to enable password protection:

  1. Go to your Squarespace Dashboard.
  2. Click on Settings.
  3. Select Site Availability.
  4. Choose Password Protected.
  5. Set your password.

Once done, just share the password here, and I’ll be able to access your site and help you out!

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Posted

The codes in the article provided don't work. I always get some sort of error in the syntax.

Thanks a lot too for this! I have been stuck here for the last hour

Posted

@Paoletta,If it’s giving you a syntax error, there’s likely a small mistake somewhere in the code. The code I provided works well, as I’ve tested it. Are you using any other custom code on your website? If so, try removing it temporarily, save the old code in a Google Doc or something similar, and then add only the code I provided to see if it works properly. Let me know how it goes!

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Posted (edited)

@Spark-Plugin Thank you! Unfortunately the error in the syntax is exactly in the code you provided. aka the line below already gives me an error in the syntax

document.addEventListener("DOMContentLoaded", function() {

Edited by Paoletta

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.