Exception for Blend Mode on one page
-
Re: Mix-Blend-Mode for .sitetitle and .menu-item
Hello everbody!
Thanks for figuring all that stuff out! Using the blend mode for an upcoming website now and was wondering, how a could give one side an exception. Tried to use the slug way but if i turn the color just white for the page, it wont be see at all because of the blend mode. So how could i deactivate it for one page?
Here is the code i am using:
nav.primary{ mix-blend-mode: difference; } .sitetitle { mix-blend-mode: difference; } /* site title */ body.type-category.id-4 .sitetitle.txt .sitetitle-txt-inner span{ color: #000000; } /* navigation */ body.type-category.id-4 nav.primary a span{ color: #000000; }
I had hoped that there would be a simple solution that would not take much time to explain :)
Cheers, Max
-
Dear Max
@MaxWinter
" if i turn the color just white for the page, it wont be seen at all because of the blend mode."
The aim is not to have the
site-title
&navigation
mix-blend-mode?What happens to your page when setting the
body
background colour transparent?body{ background-color: #0000ffff; }
"Tried to use the slug way"
https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-pageBased on the page or project's
slug-
you could reset themix-blend-mode:difference
nav.primary{ mix-blend-mode:normal !important; } .sitetitle { mix-blend-mode:normal !important; }
https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode
Talk soon ✨
Richard
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it