# Unable to create toggles

**URL:** <https://forum.ghost.org/t/unable-to-create-toggles/33655>\
**Category:** Bugs\
**Created:** [October 25, 2022, 8:28pm UTC](https://forum.ghost.org/t/unable-to-create-toggles/33655 "2022-10-25T20:28:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikamet](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ikamet/32/19991_2.png) [@ikamet](https://forum.ghost.org/u/ikamet)\
**Post date:** [October 25, 2022, 8:28pm UTC](https://forum.ghost.org/t/unable-to-create-toggles/33655/1 "2022-10-25T20:28:25Z")

</div>

Hi All

When I try to create new post, I’m not able to add expandable and collapsable toggles with good design. I have added an image for show what is going on. This is the also link for checking the page [https://ikametsigortam.net/blog/this-is-my-test/](https://ikametsigortam.net/blog/this-is-my-test/)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/e/0e0a0805ff80e60a2104c735055638c144892ca9.png)

## Setup information

**Ghost Version**  
5.20

**Node.js Version**  
v16.18.0

**How did you install Ghost?**  
I have installed Ghost with commands  
set NODE\_ENV=production  
ghost install --dir .

**Provide details of your host & operating system**  
Self hosting in IIS 10 in Windows server 2019

**Database type**  
MySQL8

**Browser & OS version**  
All browsers and operating systems

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [October 25, 2022, 8:58pm UTC](https://forum.ghost.org/t/unable-to-create-toggles/33655/2 "2022-10-25T20:58:46Z")

</div>

Neither of them is collapsing or expanding for me. I also inspected your page and changed the toggle setting from open to close. Nothing happens.

You’re missing the css and/or js for cards. There’s a known bug (let me see if I can link it…) that talks about card assets (that’s what you’re missing) not getting correctly generated on windows in development mode. I suspect this is the same bug here, since it looks like you’ve got no card assets to make the toggles work.

Yeah, found it. This bug, right here:

> <https://github.com/TryGhost/Ghost/issues/14278>
>
> \### Issue Summary
> 
> Installed ghost ( Node.js version - found v16.14.0 | npm: '…8.3.1' | Ghost-CLI version: 1.18.1
> | Ghost version: 4.38.0 ) on my Windows 10 machine. \`\`cards.min.css\`\` don't seem to load on my local dev site, but it does on the editor.
> 
> Editor:
> !\[image\](https://user-images.githubusercontent.com/45015326/157111770-55a06794-d91b-42dd-926d-3fe3b507d264.png)
> 
> Published:
> !\[image\](https://user-images.githubusercontent.com/45015326/157111816-60ba72af-0a1e-4db5-be3d-35e91607ca35.png)
> 
> I touched NOTHING. This is a fresh install, tried six times.
> 
> Here's the Package.json file, cards should show up.
> 
> !\[image\](https://user-images.githubusercontent.com/45015326/157112255-f44e2c1c-6888-4d0c-8e63-aa21719d097d.png)
> 
> Additionally, when I try to go to \`\`http://localhost:2368/public/cards.min.css\`\` on my browser, I get a 404 error.
> 
> Lastly, someone reported the same issue in 2021: \[in this post\](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410), a guy reported the same issue I'm having. Sadly, he seems to have abandoned ghost because of it, because no more posts under his username were made and he didn't bother to fill a bug report.
> 
> \### Steps to Reproduce
> 
> 1. Install ghost through npm locally on Windows
> 2. Start Ghost
> 3. Add cards on any blog post
> 4. Publish 
> 
> \### Ghost Version
> 
> 4.38
> 
> \### Node.js Version
> 
> 16.14.0
> 
> \### How did you install Ghost?
> 
> Windows 10 (npm)
> 
> \### Database type
> 
> SQLite3
> 
> \### Browser & OS version
> 
> Chrome, Firefox, Windows 10
> 
> \### Relevant log / error output
> 
> \`\`\`shell
> {"name":"Log","hostname":"DESKTOP","pid":3668,"level":30,"req":{"meta":{"requestId":"34727ba4-f918-4ee5-aaf7-696ed49b2390","userId":null},"url":"/public/cards.min.css","method":"GET","originalUrl":"/public/cards.min.css","params":{},"headers":{"host":"localhost:2368","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,\*/\*;q=0.8","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","connection":"keep-alive","cookie":"\*\*REDACTED\*\*","upgrade-insecure-requests":"1","sec-fetch-dest":"document","sec-fetch-mode":"navigate","sec-fetch-site":"none","sec-fetch-user":"?1"},"query":{}},"res":{"\_headers":{"x-powered-by":"Express","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","content-type":"text/html; charset=utf-8","etag":"W/\\"3207-66Cm6wMvq5dLdcDIxd1CmDjHrEc\\"","vary":"Accept-Encoding","content-encoding":"gzip"},"statusCode":404,"responseTime":"40ms"},"msg":"","time":"2022-03-07T20:07:44.546Z","v":0}
> \`\`\`
> 
> 
> \### Code of Conduct
> 
> \- \[X\] I agree to be friendly and polite to people in this repository

Read over that - do you have card\_assets set to true in your json file, but they’re not actually in the folder?

---

<div class="post-metadata">

**Author:** ![ikamet](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ikamet/32/19991_2.png) [@ikamet](https://forum.ghost.org/u/ikamet)\
**Post date:** [October 26, 2022, 9:31pm UTC](https://forum.ghost.org/t/unable-to-create-toggles/33655/3 "2022-10-26T21:31:36Z")

</div>

Actually I’m kind of new to using ghost, I didn’t quite understand which json file we are talking about. There is no file in public folder. Also I’m not able to find js and css files related with cards.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [January 24, 2023, 9:32pm UTC](https://forum.ghost.org/t/unable-to-create-toggles/33655/4 "2023-01-24T21:32:18Z")

</div>

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