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.