Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Exception for Blend Mode on one page

Exception for Blend Mode on one page

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 77 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MaxWinter
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MaxWinter
      wrote on last edited by
      #2

      Hello,

      just wanted to push this topic a little bit. If there is a simple solution i could find elsewhere i would be very happy if someone could let me know :)

      Could not find an answer to this in the forum.

      Have a great day!

      Cheers, Max

      1 Reply Last reply
      0
      • RichardR Offline
        RichardR Offline
        Richard
        Global Moderator
        wrote on last edited by Richard
        #3

        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-page

        Based on the page or project's slug- you could reset the mix-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

        https://css-tricks.com/almanac/properties/m/mix-blend-mode/


        Talk soon ✨
        Richard
        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        I also code custom websites or custom Lay features.
        💿 Email me here: 💿
        info@laytheme.com

        Before you post:
        1. When using a WordPress Cache plugin, disable it or clear your cache.
        2. Update Lay Theme and all Lay Theme Addons
        3. Disable all Plugins
        4. 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:
        1. Post a link to where the problem is
        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
        Online Users
        A
        alasdair17
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search