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. Mix-blend-mode for Header Text

Mix-blend-mode for Header Text

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 716 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.
  • E Offline
    E Offline
    evey_k
    wrote on last edited by
    #1

    Hi there,

    I have a tricky situation here with the mix-blend-mode which i am trying to achieve with the header text on the image.

    i have managed to solve the sitetitle and menubartitle, however it is so much more trickier to do so with the header text.

    Currently, i have set my background white.

    And i have tried many variations of the css and at the moment it is this:

    div.col .no-offset .push-2 .span-12 .align-middle .no-parallax .type-text,
    .text .lay-textformat-parent ._h5 {
    mix-blend-mode: difference;
    }

    Here is the link to my page:
    https://eveykwong.com/home-2

    I am inexperienced in coding. But i believe i am almost there with the CSS as i think i am not getting the CSS Selector right. Please advise!

    Thank you!

    E 1 Reply Last reply
    0
    • E evey_k

      Hi there,

      I have a tricky situation here with the mix-blend-mode which i am trying to achieve with the header text on the image.

      i have managed to solve the sitetitle and menubartitle, however it is so much more trickier to do so with the header text.

      Currently, i have set my background white.

      And i have tried many variations of the css and at the moment it is this:

      div.col .no-offset .push-2 .span-12 .align-middle .no-parallax .type-text,
      .text .lay-textformat-parent ._h5 {
      mix-blend-mode: difference;
      }

      Here is the link to my page:
      https://eveykwong.com/home-2

      I am inexperienced in coding. But i believe i am almost there with the CSS as i think i am not getting the CSS Selector right. Please advise!

      Thank you!

      E Offline
      E Offline
      evey_k
      wrote on last edited by
      #2

      @mariusjopen can you pls advise?

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

        Dear @evey_k

        Its not the selector that is the issue - Making the text mix-blend-mode:difference doesnt seem to have any effect - currently i do not know why, but hopefully this stops you doubting if it is the text or not :)

        Best
        Richard

        E 1 Reply Last reply
        0
        • RichardR Richard

          Dear @evey_k

          Its not the selector that is the issue - Making the text mix-blend-mode:difference doesnt seem to have any effect - currently i do not know why, but hopefully this stops you doubting if it is the text or not :)

          Best
          Richard

          E Offline
          E Offline
          evey_k
          wrote on last edited by
          #4

          @Richard-K Is there a possibility for you or an expert from Laytheme to look into this? is paying fee the only solution?

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

            Dear @evey_k

            Sorry that i am a bit swamped at the moment, posting your issue on https://stackoverflow.com/ is how many people help each other online without the need for any fee's :)

            Once again apologies that i couldn't help you further!

            Sincerely
            Richard

            1 Reply Last reply
            0
            • A Offline
              A Offline
              alejandrxmunoz
              wrote on last edited by
              #6

              In case anyone else is looking for how to do the effect. The correct selector is ".laynav" and ".laynav, a" and the text color in the links or wherever should be white or well...try it.

              .laynav {
              mix-blend-mode: difference;
              }
              .laynav, a {
              mix-blend-mode: difference;
              }

              https://www.alejandromunoz.com.ar/dtf/

              1 Reply Last reply
              1
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by arminunruh
                #7

                ah very good!

                also i noticed on iphone / mobile version
                the mix blend mode didn't work for the site title

                i noticed, mix blend mode may only work if the text that its applied to is a direct child of the body

                so with this HTML it works:

                <div class="mobile-title">Hello!</div>
                

                but with this it doesn't:

                <div class="mobile-title"><span>Hello!</span></div>
                

                so for mobile to make it work for a site title on phone, you can use this script and css
                in lay options -> custom css & html at bottom:

                <script>
                jQuery(".mobile-title span *").unwrap();
                </script>
                <style>
                .mobile-title{
                mix-blend-mode: difference;
                }
                </style>
                
                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
                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