# Issue with theme settings

**URL:** <https://meta.discourse.org/t/issue-with-theme-settings/239151>\
**Category:** Support\
**Created:** [September 16, 2022, 12:43am UTC](https://meta.discourse.org/t/issue-with-theme-settings/239151 "2022-09-16T00:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [September 16, 2022, 12:43am UTC](https://meta.discourse.org/t/issue-with-theme-settings/239151/1 "2022-09-16T00:43:07Z")

</div>

Hello,

I tried adding a cursor setting to my theme but it does not work.  
Enabled or disasbled, it’s the same thing.

This is my code:

```plaintext
@if $Is_Cursor_Active {
  .shijsfiifjsdjonf80HJ0iuf {
    display:none;
  }
} @else {
    body,
   button,div,span,a,
    img,svg,
    h1,h2,h3,h4,h5,h6,p,
   summary,
   input,textbox,input,textarea,
   li,ul {
    cursor: default !important;
  }
}

```

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [September 16, 2022, 6:37am UTC](https://meta.discourse.org/t/issue-with-theme-settings/239151/2 "2022-09-16T06:37:06Z")

</div>

Hello,

I think it is maybe a better idea to add the `cursor: default` to the settings. But you can reverse my sample below if you want. Note: I am not sure I fully understand what you would like to achive but I hope this might be useful… 🙂

```scss
body,
button,div,span,a,
img,svg,
h1,h2,h3,h4,h5,h6,p,
summary,
input,textbox,input,textarea,
li,ul {
  @if $is-cursor-default == "true" {
    cursor: default !important;
  }
  // I assume here are more properties not only cursor... 
}

```

**settings.yml**

```plaintext
is_cursor_default:
  type: bool
  default: false
  description: "Setting description here...."

```

* * *

Or you can use `enum` settings type here to make it changeable.

```scss
body,
button,div,span,a,
img,svg,
h1,h2,h3,h4,h5,h6,p,
summary,
input,textbox,input,textarea,
li,ul {
  cursor: #{$cursor_type} !important;
}

```

**settings.yml**

```plaintext
cursor_type:
  default: auto
  type: enum
  choices:
    - default
    - pointer
  description: "Setting description here... (Here the default cursor type is auto but you can change it to default or pointer...)."

```

Edit: I didn’t check but is the `!important` is necessary?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [October 16, 2022, 6:37am UTC](https://meta.discourse.org/t/issue-with-theme-settings/239151/3 "2022-10-16T06:37:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
