# Custom CSS/HTML in non-default theme (without component)

**URL:** <https://meta.discourse.org/t/custom-css-html-in-non-default-theme-without-component/256301>\
**Category:** UX\
**Tags:** css\
**Created:** [February 26, 2023, 1:28pm UTC](https://meta.discourse.org/t/custom-css-html-in-non-default-theme-without-component/256301 "2023-02-26T13:28:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bquast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bquast/32/289307_2.png) [@bquast](https://meta.discourse.org/u/bquast)\
**Post date:** [February 26, 2023, 1:28pm UTC](https://meta.discourse.org/t/custom-css-html-in-non-default-theme-without-component/256301/1 "2023-02-26T13:28:15Z")

</div>

The default theme allows for custom CSS/HTML in its settings.

As an experiment, I wanted to hide the timeline, great suggestion for doing this using CSS was made (different topic). The suggestion was to implement the 4 lines as a theme component. Not difficult, but I thought the custom CSS option in the default theme might be easier.

I switched my theme and inserted the 4 lines as custom CSS. Indeed this worked perfectly.

This makes me wonder why this custom CSS/HTML is available (only) here. Wouldn’t it make more sense to have this as a general setting?

There is probably also a use for custom CSS only in a theme, but a general one would also be useful right?

**EDIT** : Just adding a link here to the main topic discussing custom CSS, which described the above “Default” theme approach: [Making custom CSS changes on your site](https://meta.discourse.org/t/make-css-changes-on-your-site/168101)

---

_[View the full topic](https://meta.discourse.org/t/custom-css-html-in-non-default-theme-without-component/256301)._
