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  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.