Custom Cursor for a Specific Page
-
Hello!
I currently have a custom cursor for mouse hover for my page, but I'd like it to be specifically just for one of my page instead. Is that possible?Here's my website: iamsam.info
-
Dear @iamsam
ah, we love it!Sure, you can apply CSS to only a specific page:
http://laytheme.com/documentation.html#custom-css-stylingBest!
Marius
-
I tried following the instruction from the page, but I must be getting something wrong.
This is my attempt:
body.slug-aboutsam .cursor {
cursor: url(http://iamsam.info/wp-content/uploads/2019/02/myhead2.png) 64 64, auto ;
}My original code before was:
a {
cursor: url(http://iamsam.info/wp-content/uploads/2019/02/myhead2.png) 64 64, auto ;
}Thanks for your help!
-
Dear @iamsam
you probably need to use important.
https://css-tricks.com/when-using-important-is-the-right-choice/Hope that helps!
Best!
Marius
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