Jump to content

Add DonorBox Button To Navigation

Recommended Posts

Site URL: https://hwh.squarespace.com/

On the website, in the navigation section I would like to add the DonorBox Button Code below. It is a button that opens a pop up box to donate but we want it in the navigation bar instead of the other button. 

@tuanphan please help!! 🙂

Donorbox code button:

<script type="text/javascript" defer src="https://donorbox.org/install-popup-button.js"></script><a class="dbox-donation-button" style="background: #035aa5

url(https://d1iczxrky3cnb2.cloudfront.net/red_logo.png) no-repeat 37px;color: #fff;text-decoration: none;font-family: helvetica;display: inline-block;font-size: 16px;padding: 15px 20px;padding-left: 75px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0 1px 0 0 #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/hwh-donate-now">DONATE NOW</a>

 

 

Screen Shot 2020-12-15 at 12.17.05 PM.png

Edited by TVB
Link to comment
  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 8 months later...
On 8/26/2021 at 11:11 AM, AmyN said:

Were you able to get this to work?

If you share link to your site, we will check it again

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
On 8/27/2021 at 2:35 PM, pavilion said:

Was anybody able to solve this?

Can you share link to your site + donor box code?

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

Hi - this is the website:

http://www.thestereotypeproject.org

To: Install a mobile optimized donation popup form

<script type="text/javascript" defer src="https://donorbox.org/install-popup-button.js"></script><a class="dbox-donation-button" style="background: #f9b41f url(https://donorbox.org/images/red_logo.png) no-repeat 37px;color: #fff;text-decoration: none;font-family: Verdana,sans-serif;display: inline-block;font-size: 16px;padding: 15px 38px;padding-left: 75px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0 1px 0 0 #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/the-stereotype-project">Donate</a>

 

To use my own link or button: 

Add a link with a href="https://donorbox.org/the-stereotype-project" and one of the class names should be custom-dbox-popup. Example:

<a class="custom-dbox-popup" href="https://donorbox.org/the-stereotype-project">Donate Now</a>

You can also have a button image inside the link tag. Example:

<a class="custom-dbox-popup" href="https://donorbox.org/the-stereotype-project">
  <img src="https://donorbox.org/images/png-donate/button-medium-blue.png" />
</a>

Add the below two lines of code anywhere in the page, preferably above the closing </head> tag.

<script type="text/javascript" defer src="https://donorbox.org/install-popup-button.js"></script>
<script>window.DonorBox = { widgetLinkClassName: 'custom-dbox-popup' }</script>

 

 

Thanks!

Link to comment
On 8/31/2021 at 1:15 PM, pavilion said:

Hi - this is the website:

http://www.thestereotypeproject.org

To: Install a mobile optimized donation popup form

<script type="text/javascript" defer src="https://donorbox.org/install-popup-button.js"></script><a class="dbox-donation-button" style="background: #f9b41f url(https://donorbox.org/images/red_logo.png) no-repeat 37px;color: #fff;text-decoration: none;font-family: Verdana,sans-serif;display: inline-block;font-size: 16px;padding: 15px 38px;padding-left: 75px;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;box-shadow: 0 1px 0 0 #1f5a89;text-shadow: 0 1px rgba(0, 0, 0, 0.3);" href="https://donorbox.org/the-stereotype-project">Donate</a>

 

To use my own link or button: 

Add a link with a href="https://donorbox.org/the-stereotype-project" and one of the class names should be custom-dbox-popup. Example:

<a class="custom-dbox-popup" href="https://donorbox.org/the-stereotype-project">Donate Now</a>

You can also have a button image inside the link tag. Example:

<a class="custom-dbox-popup" href="https://donorbox.org/the-stereotype-project">
  <img src="https://donorbox.org/images/png-donate/button-medium-blue.png" />
</a>

Add the below two lines of code anywhere in the page, preferably above the closing </head> tag.

<script type="text/javascript" defer src="https://donorbox.org/install-popup-button.js"></script>
<script>window.DonorBox = { widgetLinkClassName: 'custom-dbox-popup' }</script>

 

 

Thanks!

and did you solve? or still need help?

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
  • 2 weeks later...

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.