You can send your questions to my email to get faster answer in 24 hours (free).
Buy me a coffee

Click Header Button – Show Google Calendar Popup

Suppose you want a Google Calendar Lightbox appear when users click on the Header button, you can follow these steps:

click-header-button-open-google-calender-lightbox-01-min

#0. When you edit the Header Button URL, make sure the option “Open link in New Tab” is disabled.

#1. Add your Google Calendar Embed Code to Code Injection > Footer. This is just example code. Use your code. Do not use example code.

click-header-button-show-google-calendar-popup-01-min

#2. Use this code to Custom CSS box

button.qxCTlb {
    position: fixed;
    opacity: 0;
    transform: translateX(-1000px);
}

click-header-button-show-google-calendar-popup-02-min

#3. Use this code to Code Injection – Footer, under #1 code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).on('click', 'header#header a.btn', function(event) { 
    event.preventDefault(); 
    $('button.qxCTlb').click(); 
});
</script>

click-header-button-show-google-calendar-popup-03-min

#4. Result

click-header-button-show-google-calendar-popup-04-min

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to: https://beaverhero.com/squarespace-how-to/
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder