Is it possible to remove the hand cursor that appears when hovering over a link?
Below my CSS et JS code.
I do not know where to change the code Iโm not at all an expert in coding.
thank you for your help
Is it possible to remove the hand cursor that appears when hovering over a link?
Below my CSS et JS code.
I do not know where to change the code Iโm not at all an expert in coding.
thank you for your help
Hey @jawd-allal , Iโm not an expert in code, but this might work by using media-queries in your JS code. Read here: https://css-tricks.com/working-with-javascript-media-queries/
The end of your code then might look like the following:
function myFunction(x) {
if (x.matches) { // If media query matches
createCustomCursor();
}
}
var x = window.matchMedia( โ(min-width: 1001px)โ ) //desktop
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes
@matanyad , what do you think?
hello Eve thank you for your help and your code.
Iโm not at all an expert in coding too Iโm a creative.
The problem is I donโt know where to put exactly this code and how to use it.
Depending on the provider, it may support Javascript to only be visible on a set screen width or you could customize the CSS to support it too.
@iloveditorx , this is a little similar to your example for a custom cursor . Do you know how you could customize this?
I would think itโs added to the bottom of the Javascript portion which is the functionality of the code. So the part of the code that states JS code.
@jawd-allal try pasting the code where you currently call the createCustomCursor() function (right at the end of your script). Delete the createCustomCursor() function and instead of it place the code I previously wrote you. I hope this helps.
Replying to
Hey Eve
Thank you so much that works .
Is it possible to have the cursor not show up when hovering over a link?
The hover effect doesnโt works on Gallery Pro
Thank you
Hi @jawd-allal , check out this amazing tutorial by @iloveditorx with an updated addition regarding special links effect: https://www.youtube.com/watch?v=WBsJiCZ9ltM
I hope this will be of help.
I had already watched. He does not say anything about it
Close to the end of the video (around minute 6:30) he shows how you can remove the cursor effect when hovering over links. Watch till the end
Hello Eve, thant you very very much for your help
I donโt want the hoever effect dissapears. I just want to hide the hand Cursor when I have a hoever effect
Sorry I I havenโt been enough clear.
And he didnโt say anything about why the hoever effect doesnโt works on Pro Gallery
@jawd-allal , you have 2 options. Either add to your CSS:
a:hover {
cursor: none;
width: 90px;
height: 90px;
background: pink;
}
or try adding the following in your current code:
[#myCustomCursor](https://www.editorxcommunity.com/forum/search/~num~myCustomCursor) .myCursorHoverState {
cursor: none **!important** ;
width: 90px;
height: 90px;
background: pink;
}
Regarding the Pro Gallery, if it doesnโt work, could be that itโs because the Pro Gallery is not a link (he talks about this in the video as well).
I hope this helps.
I just tried. Unfortunately, that doesnโt work. I have always the hand cursor
@jawd-allal send me a link to your live site. Iโd like to take a look. Thanks.