Posted by Custom Cursor Help!

. Arachri . (#223954)

Heartbreaker
View Forum Posts


Posted on
2022-10-25 11:29:40
Hello ! I've recently been changing up my den page, and wanted to try using a custom cursor. I've followed the tutorial posted by Katie (#106445), but the code disappears completely when I hit save and the cursor remains the default white. This is the code I am using, for reference. I have tried with + without the asteriks!

/* Start https://www.cursors-4u.com */ * {cursor: url(https://cur.cursors-4u.net/holidays/hol-1/hol4.cur), auto !important;} /* End https://www.cursors-4u.com */



Hrt Icon 0 players like this post! Like?

Trace (#68847)


View Forum Posts


Posted on
2022-10-26 01:13:39
In this case, the reason as to why the cursor code disappears is most probably because the CSS property does not belong to (is not under) a CSS selector. To break down the code you have:

/* Start https://www.cursors-4u.como */* Any text in between /* and */ is considered a comment and does not affect HTML/CSS in any way. As such it can be deleted.

{* cursor: url(https://cur.cursors-4u.net/holidays/hol-1/hol4.cur), auto !important; *} This is the CSS property for the cursor and must be under a CSS selector. Without a CSS selector, the property will not know where the cursor style is supposed to be implemented on the page.

/* End https://www.cursors-4u.com */ This is also a comment.


For your CSS stylesheet, consider putting the CSS selector under your body tag (CSS selector) so that the cursor style will be implemented to the entire page. this will be under line 11 (which is where you have set the default text colour to black). Let me know if it works for you. Cheers!



Hrt Icon 0 players like this post! Like?

. Arachri . (#223954)

Heartbreaker
View Forum Posts


Posted on
2022-10-26 05:10:59
Hello!

I have tried as you said, but unfortunately when I edit the css + use the new link, it doesn't work at all on my page. I may end up just commissioning someone to do this for me, but thank you nonetheless!



Hrt Icon 0 players like this post! Like?

Trace (#68847)


View Forum Posts


Posted on
2022-10-26 05:22:49
Oh? Interesting. I wonder what is stopping the cursor link from working then. Hopefully, you can figure it out soon enough.



Hrt Icon 0 players like this post! Like?

Magic Man (Audrey
II) (#169528)

Total Chad
View Forum Posts


Posted on
2022-12-26 02:49:50
Please, did you ever figure it out?



Hrt Icon 0 players like this post! Like?

Hok-Z|Hiatus (#41458)


View Forum Posts


Posted on
2022-12-26 02:58:15
* {cursor: url(https://cur.cursors-4u.net/holidays/hol-1/hol4.cur), auto !important;}


I got it to work like this on my den. Removing the asterisk at the beginning broke it.



Hrt Icon 0 players like this post! Like?







Memory Used: 621.33 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00358s