Demo: https://tuanphan-demo01.squarespace.com/click-text-bandsintown-v2?noredirect
Password: abc
Suppose you have 2 Texts and 2 Bandsintown Blocks.
And you want: when clicking on the Text, the Bandsintown will appear below it.
You can follow these steps:
#1. First, add 2 Text Blocks and 2 Bandsintown Blocks.

#2. Edit 2 Text Blocks, and use these URLs:
- #bandsintown01
- #bandsintown02
and make sure the option “Open Link in New Tab” is disabled.


#3. Install Squarespace ID Finder to find the ID of Buttons and Newsletters.
In my example, we will have:
- Text Block: #block-yui_3_17_2_1_1711097655291_7956
- Bandsintown 01: #block-yui_3_17_2_1_1711096431028_5333
- Bandsintown 02: #block-yui_3_17_2_1_1711096431028_14392

#4. Use code to Code Injection – Footer (or Page Header Code Injection)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
// Bandsintown 01
$("#block-yui_3_17_2_1_1711096431028_5333").closest('.fe-block').addClass('bandsintown01 show');
// Bandsintown 02
$("#block-yui_3_17_2_1_1711096431028_14392").closest('.fe-block').addClass('bandsintown02');
// Bandsintown 01
$('a[href="#bandsintown01"]').click(function(){
$(".bandsintown01").addClass("show");
$('.fe-block:not(.bandsintown01)').removeClass('show');
}
);
// Bandsintown 02
$('a[href="#bandsintown02"]').click(function(){
$(".bandsintown02").addClass("show");
$('.fe-block:not(.bandsintown02)').removeClass('show');
}
);
});
</script>
<style>
.bandsintown01 .bandsintown-block, .bandsintown02 .bandsintown-block {
display: none;
}
.show .bandsintown-block {
display: block !important;
}
.show {
z-index: 999999 !important;
}
</style>
#5. Explain code
