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. Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
  3. Custom cursor pointer for lightbox plugin

Custom cursor pointer for lightbox plugin

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
5 Posts 2 Posters 299 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
    ErEs
    wrote on Jun 11, 2021, 12:32 PM last edited by
    #1

    hey!

    i would love to change the default pointer for laytheme's lightbox plugin to my custom cursor.

    first i tried to style the pointer via css as a "normal" cursor and secondly tried to overwrite the code which activates the pointer on lightbox images by using a url to my custom cursor instead. neither of them worked.

    i guess it will be quite simple but for some reason i do not know how to get it to work.

    anybody knows a working solution?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Jun 12, 2021, 3:49 AM last edited by Richard Jun 11, 2021, 11:49 PM
      #2

      Dear @ErEs

      What Custom Cursor functions are needed for your Lightbox?

      Custom next & previous cursors & close buttons are able through:

      Lay Options > Lightbox Addon >

      Just wish to understand better, talk soon & have a wonderful day 🌝


      Sincerely
      Richard
      1 Reply Last reply
      0
      • E Offline
        E Offline
        ErEs
        wrote on Jun 12, 2021, 1:07 PM last edited by
        #3

        Dear @Richard

        on my website i have a pink circle as custom cursor which changes to another pink form when hovering over clickable items (a, img a). this works totally fine.
        however when i hover over images which will open in lightbox, my cursor will not be displayed. the default pointer hand will be displayed instead.

        i checked my site code and was able to detect the css which makes it happen (see images). however i am not able to fix it. Bildschirmfoto 2021-06-12 um 15.00.05.png Bildschirmfoto 2021-06-12 um 15.00.26.png

        here are some lines of code i already tried:

        #lightbox-region{
            cursor: url(herewouldbemyurl)
        }
        
        body.lightbox-css-on img{
          cursor: url(herewouldbemyurl)
        }
        

        i also tried

        .pointer{
        display:none
        }
        
        1 Reply Last reply
        0
        • E Offline
          E Offline
          ErEs
          wrote on Jun 15, 2021, 10:28 AM last edited by
          #4

          Hello again,

          good news – i fixed it on my own.
          the use of "!important" was missing the whole time.
          I ll post the code i used down below in case anyone is struggling with a similar problem.

          .lightbox-css-on .grid-inner .col img{
              cursor: url(herewouldbemyurl) 40 40, auto !important;
          } 
          
          1 Reply Last reply
          2
          • R Offline
            R Offline
            Richard
            Global Moderator
            wrote on Jun 17, 2021, 12:45 AM last edited by
            #5

            Dear @ErEs

            Great :) Thank you for updating

            Best
            Richard

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            2/5

            Jun 12, 2021, 3:49 AM


            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.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search