Hi!
Trying to decrease font size in the cookie consent bar that we applied with an app, but it doesnt allow to control the font size from within the app. Can anyone help with code?
Store URl: www.mism.store
Thanks in advance!
Mims-team
Hi!
Trying to decrease font size in the cookie consent bar that we applied with an app, but it doesnt allow to control the font size from within the app. Can anyone help with code?
Store URl: www.mism.store
Thanks in advance!
Mims-team
Look for the HTML element that represents the consent bar and find its class or ID. It might be something like .cookie-consent or #cookie-consent.
Add custom CSS code: Once you have identified the class or ID, you can add custom CSS code to adjust the font size. Open your Shopify admin, go to “Online Store” > “Themes” > “Actions” > “Edit code” and open your theme’s CSS file (usually named theme.scss.liquid or styles.scss.liquid).
Insert the CSS code: Inside the CSS file, add the following code, replacing .cookie-consent with the actual class or ID you found in step 1:
.cookie-consent {
font-size: 14px; /* Adjust the font size value as needed */
}
Hi @monomgroup
Please follow the instructions below.
NOTE: Adjust 12px to the size of choice
span#cookieconsent\:desc {
font-size: 12px;
}
Result: