Jump to content

Add Multiple Codes to CSS section.

Recommended Posts

Posted

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 

 

 

 

  • Replies 1
  • Views 208
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.