# How to add custom config values and use them in ghost themes

**URL:** <https://forum.ghost.org/t/how-to-add-custom-config-values-and-use-them-in-ghost-themes/19684>\
**Category:** Themes\
**Created:** [January 24, 2021, 3:49am UTC](https://forum.ghost.org/t/how-to-add-custom-config-values-and-use-them-in-ghost-themes/19684 "2021-01-24T03:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalswim](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@digitalswim](https://forum.ghost.org/u/digitalswim)\
**Post date:** [January 24, 2021, 3:49am UTC](https://forum.ghost.org/t/how-to-add-custom-config-values-and-use-them-in-ghost-themes/19684/1 "2021-01-24T03:49:12Z")

</div>

Is it possible to add custom config values in ghost themes, is there any alternative if this is not possible, for example I want to add configurable social links in my theme file.

Thanks

---

<div class="post-metadata">

**Author:** ![brightthemes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brightthemes/32/25099_2.png) [@brightthemes](https://forum.ghost.org/u/brightthemes)\
**Post date:** [January 24, 2021, 1:53pm UTC](https://forum.ghost.org/t/how-to-add-custom-config-values-and-use-them-in-ghost-themes/19684/2 "2021-01-24T13:53:41Z")

</div>

Unfortunately only the `posts_per_page` property is passed from the config.

> **[Ghost Handlebars Theme Helpers: @config](https://ghost.org/docs/themes/helpers/config/)**
>
> How to access global data properties with @config in your Handlebars theme. Read more about Ghost themes ⚡️

An alternative I can think of is creating a json object and generating(changing) the content with javascript.

```auto
<script>
  let config = {
    facebook: 'link', 
    twitter: 'link', 
    youtube: 'link'
  }
</script>

```

You can later use these properties to change the href attributes of your social links or generate them with js.
