Jump to content

Add Multiple Codes to CSS section.

Recommended Posts

Site URL: https://www.beewellhoni.com

Hello, my question is can you add multiple codes to CSS if so how. I have a custom code to create a line on my page to divide a particular section for aesthetics, but I would like to add a cookie code to my website to allow my visitors to choose if they agree or don't agree with sharing information. When I add my cookie code, it erases the custom line I create for my website. 

The code for the line 

#block-yui_3_17_2_1_1663409894985_4595
{border-left: 1px solid #000000}

 

and the code for my cookiebot 

<script id="CookieDeclaration" src="https://consent.cookiebot.com/9e02d103-8454-43a9-9cd3-7ba11fc616e2/cd.js" type="text/javascript" async></script>

 

I currently only have the line code in the CSS because if I put both codes in it will erase the line. 

 

Please help. I am not a coder just someone who wants to learn how to manage and control her own website. 

 

Thanks, 

HONI 

 

 

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, Defen91 said:

can you add multiple codes to CSS if so how. I have a custom code to create a line on my page to divide a particular section for aesthetics, but I would like to add a cookie code

There are many different types of "code" and they must be managed in different ways.

The first section of code is CSS and is used to style elements of the website. It can be added to Design > Custom CSS.

The second section of code is HTML (that refers to a third type of code called JavaScript). As this is not CSS, it should not be added to the Custom CSS panel. Instead, this should be added in Settings > Advanced > Code Injection.

Did this help you today? Please provide feedback by clicking a 'Like' or 'Thanks' icon below  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.