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. Addons
  3. Change text color depending on carousel image

Change text color depending on carousel image

Scheduled Pinned Locked Moved Addons
4 Posts 3 Posters 160 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.
  • L Offline
    L Offline
    lakitu
    wrote on last edited by
    #1

    Hi everyone,

    I have an about text which is #0000ad and when there is a dark image displayed, I want it to change to #ffffff but I have been looking everywhere and could not find the solution, although changing the caption and number colors was possible with the alt-button class.

    the page link is: http://franmonroy.com/carousel/

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

      oh yea mmh :/ i think its not possible

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nuotio
        wrote on last edited by
        #3

        I have also tried to get similar system working, but without luck. I'm using the carousel as a full-screen slider and would love to change colors of all texts when coming to a slide that uses the alternative buttons. I thought this either of these would work but no luck yet…

        <script>
        window.laytheme.on("newpageshown", function(){
        if (jQuery("div").hasClass(".alt-buttons")) {
        jQuery("._Menu").css("color", "#BA4823");
        }
        });
        </script>

        OR

        <script>
        window.laytheme.on("newpageshown", function(){
        if (jQuery(".alt-buttons")[0]){
        jQuery("._Menu").css("color", "#BA4823");
        }
        });
        </script>

        Any idea is this even possible or have I misunderstood something completely? Having an option for ie negative colored captions and numbers on certain slides would make the carousel add-on more flexible especially as there's already the option to use alternative buttons.

        Nevertheless, I understand that I'm asking a way more than what the carousel add-on is proabably meant to be, so I understand if this is not something that will ever be possible...

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

          hey its not possible sorry

          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