# \[solved\] User variables not working

**URL:** <https://forum.pinegrow.com/t/solved-user-variables-not-working/7994>\
**Category:** General\
**Created:** [May 1, 2023, 2:25pm UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994 "2023-05-01T14:25:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitestreet](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/sitestreet/32/41_2.png) [@sitestreet](https://forum.pinegrow.com/u/sitestreet)\
**Post date:** [May 1, 2023, 2:25pm UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/1 "2023-05-01T14:25:29Z")

</div>

I had to reinstall MacOS so have reloaded all my software including Pinegrow. My project is on a Google Drive which is fine. However, I am using User Variables for the theme path and URL but they’re not working.

I’ve set the variables as:

```auto
$sitestreet-local=/Users/jon/Sites/site-street-local/wp-content/themes/sitestreet
$sitestreet-local-url=https://site-street.local/

```

I then have my theme settings use them like this:

```auto
Theme Folder: ${sitestreet-local}
Site url: ${sitestreet-local-url}

```

If I put the proper path into the Theme Folder field it works perfectly.

It looks like Pinegrow, while storing the variables, isn’t actually making them available as if I replace the Theme Folder with the actual path and then go to export the theme, I get this message:

 ![Screenshot 2023-05-01 at 15.23.57](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/b1659f488700527221a2a650b2d1f7206330cc42.png)

I’m on MacOS Ventura 13.3.1 and Pinegrow 7.4 (Intel).

Help!

---

<div class="post-metadata">

**Author:** ![sitestreet](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/sitestreet/32/41_2.png) [@sitestreet](https://forum.pinegrow.com/u/sitestreet)\
**Post date:** [May 1, 2023, 5:58pm UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/2 "2023-05-01T17:58:13Z")

</div>

Hmm, I’ve fixed it but am still slightly puzzled. I thought I’d try setting the variables without the $ and that solved it:

```auto
sitestreet_local=/Users/jon/Sites/site-street-local/wp-content/themes/sitestreet
sitestreet_local_url=https://site-street.local/

```

The instructions below the field says to include the $ and I’m sure I did previously although I can’t check as I had to reformat my laptop.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [May 4, 2023, 2:25am UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/3 "2023-05-04T02:25:47Z")

</div>

@sitestreet thanks for the report, I fixed the help text in Settings.

---

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [November 9, 2023, 9:57am UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/4 "2023-11-09T09:57:26Z")

</div>

help text still says to include $. What is the correct use of this? {my\_var} oder ${my\_var} ?

EDIT: seems to be ${my\_var}

Sadly it’s not possible to use this vars for adding CSS files via Stylesheet manager (= feature request).

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [November 14, 2023, 1:48pm UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/5 "2023-11-14T13:48:01Z")

</div>

The (short) documentation about user variables is available [here](https://pinegrow.com/release_notes/release-4-7-10-may-2018/#team-collaboration-with-user-variables-in-theme-settings)

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [November 14, 2023, 1:48pm UTC](https://forum.pinegrow.com/t/solved-user-variables-not-working/7994/6 "2023-11-14T13:48:04Z")

</div>


