# CSS link via \`{asset}\` helper doesn't seem to work properly

**URL:** <https://forum.ghost.org/t/css-link-via-asset-helper-doesnt-seem-to-work-properly/28959>\
**Category:** Themes\
**Created:** [March 10, 2022, 2:51am UTC](https://forum.ghost.org/t/css-link-via-asset-helper-doesnt-seem-to-work-properly/28959 "2022-03-10T02:51:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan.vidrine](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jordan.vidrine/32/17049_2.png) [@jordan.vidrine](https://forum.ghost.org/u/jordan.vidrine)\
**Post date:** [March 10, 2022, 2:51am UTC](https://forum.ghost.org/t/css-link-via-asset-helper-doesnt-seem-to-work-properly/28959/1 "2022-03-10T02:51:21Z")

</div>

Hey there 👋

My name is Jordan Vidrine, I am a Designer for Discourse, so its awesome to see ya’ll using our software for the forum! We are migrating our blog over to Ghost, and I am working on creating a simple theme for the site.

I am working through tweaking the casper-dev theme in order to learn more about theming with Ghost.

One issue I seem to be bumping into is with using the `{asset}` helper.

Here is how I am using it in the `head` of my `default.hbs`

```hbs
<link rel="stylesheet" type="text/css" href="{{asset "built/test.css"}}" />

```

Here is the content of that `css` file.

```css
// test.css

p.test-text {
  font-weight: bold;
  color: #ffffff;
  font-size: 32px;
}

```

I am using `yarn dev` and the css file is properly being created & added to `assets/built/css/test.css` just fine on edits.

I have added a short line of html to the `default.hbs` file like so, in order to generate the following:

```html
...
 <p class="test-text">Hello World</p>
 <div class="gh-head-menu">
...

```

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/c/1/c1161ded0152cae9f6daf2ff0fe9c0ca2a70492e.jpeg)

The css doesn’t seem to be targeting my html though, and upon investigation I see that the css in the generated html has some versioning syntax added to it → `/assets/built/test.css?v=b707af6428`

Upon viewing the “versioned” file in the sources explorer in google chrome, I am not seeing any of my custom css in the file. Only this:

`/*# sourceMappingURL=test.css.map */`

For now I am not using the `{asset}` helper as it doesn’t append the version text to the file, and this seems to work, but caching issues arises 😬

`<link rel="stylesheet" type="text/css" href="/assets/built/test.css" />`

I am new to this, so I may be overlooking something very simple, but some help would be much appreciated!

### Edit

It seems that running `ghost restart` fixes the issue of the css not showing up in the sources panel. Is this expected behavior? Needing to run `ghost restart` in addition to having `yarn dev` running as well?
