Defen91 Posted October 17, 2022 Share Posted October 17, 2022 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
paul2009 Posted October 17, 2022 Share Posted October 17, 2022 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: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment