# Custom mouse pointer

**URL:** <https://forum.wixstudio.com/t/custom-mouse-pointer/18833>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 13, 2020, 4:37pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833 "2020-06-13T16:37:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![info48396](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/info48396/32/17512_2.png) [@info48396](https://forum.wixstudio.com/u/info48396)\
**Post date:** [June 13, 2020, 4:37pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/1 "2020-06-13T16:37:00Z")

</div>

Is it possible to have a custom pointer in my website? if yes, how can I achieve that? ty

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [June 13, 2020, 7:11pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/2 "2020-06-13T19:11:35Z")

</div>

If you have a premium account, you can add a CSS snippet to the tracing & analytic section and set it from there.

---

<div class="post-metadata">

**Author:** ![uval-blumenfeld-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/uval-blumenfeld-wix/32/672_2.png) [@uval-blumenfeld-wix](https://forum.wixstudio.com/u/uval-blumenfeld-wix)\
**Post date:** [June 14, 2020, 8:59am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/3 "2020-06-14T08:59:10Z")

</div>

Another approach (which also requires a premium domain-connected site), is to use custom elements. Custom elements give you access to the DOM, which gives you several options on how to manipulate the cursor. Based on your exact need, you could change it for the whole document, or expose some function in the custom element and use your Corvid code to call it whenever you need the cursor to change.

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [June 14, 2020, 9:39am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/4 "2020-06-14T09:39:44Z")

</div>

@uval-blumenfeld-wix , and maybe it’s time to implement it as a Corvid element property. (It shouldn’t be too hard to develop. Am I wrong?)

---

<div class="post-metadata">

**Author:** ![lukasjacqueline](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lukasjacqueline/32/21412_2.png) [@lukasjacqueline](https://forum.wixstudio.com/u/lukasjacqueline)\
**Post date:** [July 16, 2020, 8:14am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/5 "2020-07-16T08:14:00Z")

</div>

@uval-blumenfeld-wix it would be great to implement this as a Corvid element property 😁

---

<div class="post-metadata">

**Author:** ![tobyparryrussell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tobyparryrussell/32/23417_2.png) [@tobyparryrussell](https://forum.wixstudio.com/u/tobyparryrussell)\
**Post date:** [September 12, 2020, 12:04pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/6 "2020-09-12T12:04:02Z")

</div>

Is there a way to make this feature free?

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [September 12, 2020, 5:40pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/7 "2020-09-12T17:40:40Z")

</div>

Maybe it’ll be implemented into Corvid one day.  
But currently the only way to have it for free is by creating a specific element (such as a button) in an htmlComponent (iframe) set the css in the iframe code and post the necessary data from the iframe to the parent page and vice versa.

---

<div class="post-metadata">

**Author:** ![matiaslucero](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/matiaslucero/32/23974_2.png) [@matiaslucero](https://forum.wixstudio.com/u/matiaslucero)\
**Post date:** [November 13, 2020, 10:48am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/8 "2020-11-13T10:48:42Z")

</div>

Anybody that knows how to do this? I’ll be happy to working together for a client’s website!

---

<div class="post-metadata">

**Author:** ![drewtucker1234](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/drewtucker1234/32/25729_2.png) [@drewtucker1234](https://forum.wixstudio.com/u/drewtucker1234)\
**Post date:** [December 27, 2020, 9:39pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/9 "2020-12-27T21:39:35Z")

</div>

Hi -

I have a premium account and have read the new update with CORVID and the ability to change attributes on your site, like a custom cursor, using the EMBED section. However, I cannot figure out what code to use / where to put it.

Basically, I am just trying to change my cursor from the arrow to a custom image. I have the image, but I am not sure where to upload to create the URL for the image. Even once I figure that out, I am not sure how to target the cursor correctly and what code I put in to change the cursor.

anyone know how to do this?

-D

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [December 27, 2020, 10:42pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/10 "2020-12-27T22:42:55Z")

</div>

You should add more details. For example - where do you want it? Do you want to change it for the entire site? for specific pages? for specific elements on a specific page?

---

<div class="post-metadata">

**Author:** ![drewtucker1234](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/drewtucker1234/32/25729_2.png) [@drewtucker1234](https://forum.wixstudio.com/u/drewtucker1234)\
**Post date:** [December 27, 2020, 11:53pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/11 "2020-12-27T23:53:39Z")

</div>

Hi J.D. ,

I would like it to be just my general cursor, on my page. So I guess on the entire website in terms of where.

I just basically want to draw a cartoon (I’m an artist) and have that cartoon become my cursor throughout the website, instead of the typical arrow.

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [December 28, 2020, 12:10am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/12 "2020-12-28T00:10:37Z")

</div>

@drewtucker1234 so first you should either load your image to Wix (via the media manager) or get an external URL for this image:  
Then go to the site dashboard \> settings \> custom code \> Add Custom Code  
And try to add this to the HEAD part and apply to all pages:

```javascript
<style>
body {
cursor:url(https://my-image-url-address.png), auto !important;
  }
</style>

```

I haven’t tried it and it may not work (it might be overridden by Wix styling). If it does not work, you can try to add the following to the end of the BODY part:

```javascript
<script>
document.body.style.cursor = "url(https://my-image-url-address.png), auto";
</script>

```

---

<div class="post-metadata">

**Author:** ![drewtucker1234](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/drewtucker1234/32/25729_2.png) [@drewtucker1234](https://forum.wixstudio.com/u/drewtucker1234)\
**Post date:** [December 28, 2020, 12:34am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/13 "2020-12-28T00:34:03Z")

</div>

@jonatandor35 okay SO somewhat success. The code I inserted into the HEAD did work. However, whenever my image cursor scrolls over a link, it changes back to the arrow, and is a bit glitchy.

any thoughts on how to make it just the image cursor all the time?

thanks!  
D

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [December 28, 2020, 10:26am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/14 "2020-12-28T10:26:23Z")

</div>

@drewtucker1234 Try to add the script (see above) to the end of the body.

---

<div class="post-metadata">

**Author:** ![billiejocronin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/billiejocronin/32/25882_2.png) [@billiejocronin](https://forum.wixstudio.com/u/billiejocronin)\
**Post date:** [January 4, 2021, 3:53pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/15 "2021-01-04T15:53:21Z")

</div>

Hey @jonatandor35 I have tried this and it doesn’t seem to work for me? Do you know if the image has to be a specific type ie png, jpeg? Thanks xxxx

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [January 4, 2021, 6:42pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/16 "2021-01-04T18:42:29Z")

</div>

You can use png and jpg afaik. You can also use svg path.  
And you can see an example here:  
[https://codepen.io/geoffgraham/pen/qZjwGe](https://codepen.io/geoffgraham/pen/qZjwGe)

---

<div class="post-metadata">

**Author:** ![hilaccc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/hilaccc/32/26365_2.png) [@hilaccc](https://forum.wixstudio.com/u/hilaccc)\
**Post date:** [January 26, 2021, 10:36am UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/17 "2021-01-26T10:36:55Z")

</div>

@jonatandor35 hay! if I want to change the pointer only at homepage . where do I put the code, and how I input the image in the code?  
many thanks!

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [January 26, 2021, 4:09pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/18 "2021-01-26T16:09:44Z")

</div>

@hilaccc Create a custom code (dashboard \> settings \> custom code) and set it to homepage only

---

<div class="post-metadata">

**Author:** ![experimentnoxx](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/experimentnoxx/32/10304_2.png) [@experimentnoxx](https://forum.wixstudio.com/u/experimentnoxx)\
**Post date:** [February 18, 2021, 7:45pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/19 "2021-02-18T19:45:28Z")

</div>

@jonatandor35 Thanks! This solution worked for a client of mine. Except for one thing [Edit: now RESOLVED, see below). The cursor is very large, and uploading a lower resolution png doesn’t seem to help.  
Any idea why that might be or a suggestion on how to make the cursor smaller?

Edit: I resolved this by converting the png image to a .ico one.

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [February 18, 2021, 8:26pm UTC](https://forum.wixstudio.com/t/custom-mouse-pointer/18833/20 "2021-02-18T20:26:14Z")

</div>

You can also just resize the image.  
“…you should limit yourself to the size 32×32 for maximum compatibility”. See:  
[https://developer.mozilla.org/en-US/docs/Web/CSS/CSS\_Basic\_User\_Interface/Using\_URL\_values\_for\_the\_cursor\_property](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Basic_User_Interface/Using_URL_values_for_the_cursor_property)

[Next page](https://forum.wixstudio.com/t/custom-mouse-pointer/18833.md?page=2)
