Jump to content

Problem integrating Algolia into Squarespace via embed block

Recommended Posts

I am trying to integrate Algolia but it seems when I put the code in the whole site’s look and fonts change (become smaller, padding added to the sides of the page etc).
 
I am just using an embed block - see the integration here (password: ed) https://www.thewesternport.com.au/code - with the Algolia block halfway down (the lists of bands coming)
 
Playing around it is this line from the block's Algolia integration that is causing the whole site to change: <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> 
 
This is how the website is meant to look (larger font sizes and no padding on sides etc) https://www.thewesternport.com.au - just wondering if someone knows what might be the problem/ something I've missed
Link to comment

Bootstrap CSS is the cause.

1 year ago I installed some effects that use Bootstraps, it causes the same issue, in addition it also distorts icons when inserting block in editing mode.

You will need to write more CSS to override Bootstrap.

Have you solved this yet?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 10 months later...
On 12/13/2020 at 7:38 AM, edhex said:
I am trying to integrate Algolia but it seems when I put the code in the whole site’s look and fonts change (become smaller, padding added to the sides of the page etc).
 
I am just using an embed block - see the integration here (password: ed) https://www.thewesternport.com.au/code - with the Algolia block halfway down (the lists of bands coming)
 
Playing around it is this line from the block's Algolia integration that is causing the whole site to change: <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> 
 
This is how the website is meant to look (larger font sizes and no padding on sides etc) https://www.thewesternport.com.au - just wondering if someone knows what might be the problem/ something I've missed

You can found some scoped-bootstrap css build and place all your code inside that container

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
  • 1 month 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.