Jump to content

Custom header button help (Showpass widget/button integration) would like to have it on top left of header

Recommended Posts

Hello folks!

Looking for some insight/help. I'm currently trying to build a site with showpass integration. I've done all the necessary stuff they have in their instructions and it works good on one of my sections.

For context here are the instructions: https://help.showpass.com/hc/en-us/articles/360023663794

Now i'm trying to add that same button to my header and would like it on the top left.

I actually tried going to pages -> Home -> settings -> advanced and added the code i'm using on another part of the page in the page header code injection box and it appeared on my header, however, it's appearing in the centre right above the logo in the header.

Here is the code:
<div class="sqs-block button-block sqs-block-button sqs-stretched" data-block-type="53">
    <div class="sqs-block-content">
        <div class="sqs-block-button-container sqs-block-button-container--center preFade fadeIn" data-animation-role="button" data-alignment="center" data-button-size="large" data-button-type="secondary" style="transition-timing-function: ease; transition-duration: 1.2s; transition-delay: 0.135937s;">
            <a ref="#" onclick="showpass.tickets.eventPurchaseWidget('eventname', {'theme-primary': '#ED0D0D', 'keep-shopping': true})" class="sqs-block-button-element--large sqs-button-element--secondary sqs-block-button-element" data-initialized="true">
                BUY NOW
            </a>
        </div>
    </div>
</div>

Any suggestions on how I can make that appear left side aligned would be greatly appreciated! 

Link to comment
  • Replies 1
  • Views 171
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, Brian_Nino said:

Hello folks!

Looking for some insight/help. I'm currently trying to build a site with showpass integration. I've done all the necessary stuff they have in their instructions and it works good on one of my sections.

For context here are the instructions: https://help.showpass.com/hc/en-us/articles/360023663794

Now i'm trying to add that same button to my header and would like it on the top left.

I actually tried going to pages -> Home -> settings -> advanced and added the code i'm using on another part of the page in the page header code injection box and it appeared on my header, however, it's appearing in the centre right above the logo in the header.

Here is the code:
<div class="sqs-block button-block sqs-block-button sqs-stretched" data-block-type="53">
    <div class="sqs-block-content">
        <div class="sqs-block-button-container sqs-block-button-container--center preFade fadeIn" data-animation-role="button" data-alignment="center" data-button-size="large" data-button-type="secondary" style="transition-timing-function: ease; transition-duration: 1.2s; transition-delay: 0.135937s;">
            <a ref="#" onclick="showpass.tickets.eventPurchaseWidget('eventname', {'theme-primary': '#ED0D0D', 'keep-shopping': true})" class="sqs-block-button-element--large sqs-button-element--secondary sqs-block-button-element" data-initialized="true">
                BUY NOW
            </a>
        </div>
    </div>
</div>

Any suggestions on how I can make that appear left side aligned would be greatly appreciated! 

Can you share your URL so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.