how to put changes in a theme #867

Closed
opened 2026-02-04 22:37:44 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @andreiM101 on GitHub (Oct 18, 2018).

Describe the feature you'd like
I modified the page-content CSS as described in #1067. I assume that at the next update the change will be lost.
Is it possible to save this as a theme in order to avoid being override at the next update?

Describe the benefits this feature would bring to BookStack users
Any change to the aspect can be saved in case of an update if it is saved as a theme.

If it is already implemented please tell how I can do it.
Thanks

Originally created by @andreiM101 on GitHub (Oct 18, 2018). **Describe the feature you'd like** I modified the page-content CSS as described in #1067. I assume that at the next update the change will be lost. Is it possible to save this as a theme in order to avoid being override at the next update? **Describe the benefits this feature would bring to BookStack users** Any change to the aspect can be saved in case of an update if it is saved as a theme. If it is already implemented please tell how I can do it. Thanks
Author
Owner

@ssddanbrown commented on GitHub (Oct 18, 2018):

@andreiM101 instead of modifying the styles directly you can simply add the css to the 'Custom HTML head content' setting within the admin settings area. You'll need to wrap it in style blocks like so:

<style>
.page-content { max-width: 1000px; }
</style> 
@ssddanbrown commented on GitHub (Oct 18, 2018): @andreiM101 instead of modifying the styles directly you can simply add the css to the 'Custom HTML head content' setting within the admin settings area. You'll need to wrap it in style blocks like so: ```html <style> .page-content { max-width: 1000px; } </style> ```
Author
Owner

@andreiM101 commented on GitHub (Oct 18, 2018):

It is working, thanks.
These 'Custom HTML' it will be carried over in an update?

@andreiM101 commented on GitHub (Oct 18, 2018): It is working, thanks. These 'Custom HTML' it will be carried over in an update?
Author
Owner

@qianmengnet commented on GitHub (Oct 19, 2018):

<style>
.page-content { max-width: 1000px; }
.container.small { max-width: 1000px; }
</style>

This will change the width of the chapter list to 1000px. This setting is written to the database.

@qianmengnet commented on GitHub (Oct 19, 2018): `<style>` `.page-content { max-width: 1000px; }` `.container.small { max-width: 1000px; }` `</style>` This will change the width of the chapter list to 1000px. This setting is written to the database.
Author
Owner

@ssddanbrown commented on GitHub (Oct 20, 2018):

@andreiM101 Yes, 'Custom HTML head content' will persist across updates.

Since that's solved it I'll close this issue.

@ssddanbrown commented on GitHub (Oct 20, 2018): @andreiM101 Yes, 'Custom HTML head content' will persist across updates. Since that's solved it I'll close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#867