# contentSize doesn't work in theme.json file

**URL:** <https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381>\
**Category:** Questions\
**Created:** [May 1, 2024, 12:38pm UTC](https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381 "2024-05-01T12:38:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Gabrielyan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/sergey_gabrielyan/32/3303_2.png) [@Sergey\_Gabrielyan](https://community.kinsta.com/u/Sergey_Gabrielyan)\
**Post date:** [May 1, 2024, 12:38pm UTC](https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381/1 "2024-05-01T12:38:05Z")

</div>

On WordPress `6.5.2` version, in the `theme.json` file, I have the following code

```auto
{
  "version": 2,
  "settings": {
    "layout": {
      "contentSize": "800px"
    }
  }
}

```

But it doesn’t work if editing any Post or opening Site Editor

**Post Editing**

[Screenshot – Post Editing](https://ibb.co/1Txg7nh)

**Site Editor**

[Screenshot – Site Editor](https://ibb.co/8MNfpDL)

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [May 2, 2024, 3:47am UTC](https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381/3 "2024-05-02T03:47:12Z")

</div>

Hello @Sergey_Gabrielyan,

Although it is a code development query, I have tested the code on a default WordPress site using the twentytwentyfour theme. I manually made changes to the theme.json file and after saving the file, I cleared the server/page cache and Kinsta CDN cache. The changes were reflected in the “contentSize” value without any issues.

If you haven’t, I suggest clearing also the Site and CDN cache if it’s enabled on your site since .json extensions are served through the Kinsta CDN if it’s enabled.

> **[Caching - Server Caching - Kinsta® Docs](https://kinsta.com/docs/wordpress-hosting/caching/site-caching/#clear-cache-in-mykinsta)**
>
> In this guide, we’ll show you how to clear your site’s cache using several options: from your WordPress Dashboard, in MyKinsta, with WP-CLI and via SSH.

To clear the CDN Cache - go to **WordPress Sites** \> _ **sitename** _ \> **CDN** \> **Clear CDN cache** ).

If clearing the Site and CDN cache doesn’t work, it may be because a plugin active on the site is overriding the value. You might need to temporarily disable other plugins to find which one could be conflicting.

I hope you find this information helpful. 🙂

Let me know if you have any further questions or concerns.

---

<div class="post-metadata">

**Author:** ![Sergey\_Gabrielyan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/sergey_gabrielyan/32/3303_2.png) [@Sergey\_Gabrielyan](https://community.kinsta.com/u/Sergey_Gabrielyan)\
**Post date:** [May 2, 2024, 5:50pm UTC](https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381/4 "2024-05-02T17:50:41Z")

</div>

Hello @Adrian_L. I’ve found the solution, but thank you for responding.

---

<div class="post-metadata">

**Author:** ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)\
**Post date:** [May 3, 2024, 3:57am UTC](https://community.kinsta.com/t/contentsize-doesnt-work-in-theme-json-file/3381/5 "2024-05-03T03:57:34Z")

</div>

Hi @Sergey_Gabrielyan Glad to know that the issue has been resolved.  
If you have questions or issues in the future, please feel free to reach out.

Have a great day!
