# Sams einfaches Thema

**URL:** https://meta.discourse.org/t/sams-simple-theme/23552
**Category:** Theme
**Tags:** official, sams-simple-theme
**Created:** [31. Dezember 2014 um 03:20 UTC](https://meta.discourse.org/t/sams-simple-theme/23552 "2014-12-31T03:20:14Z")
**Posts on this page:** 20
**Page:** 12

<div class="post-metadata">

### Author: ![Oskar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oskar/32/103381_2.png) [@Oskar](https://meta.discourse.org/u/Oskar)
#### Post date: [21. Dezember 2015 um 20:22 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/224 "2015-12-21T20:22:47Z")

</div>

@sam would it be possible to export this customisation as a gist or something? Would make it easier to reference and see when there are updates. As this is pretty great!

---

<div class="post-metadata">

### Author: ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)
#### Post date: [25. Dezember 2015 um 21:43 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/225 "2015-12-25T21:43:47Z")

</div>

```plaintext
  {{raw "topic-list-header-column" sortable='true' number='true' order='posts' forceName='Replies'}}
  {{raw "topic-list-header-column" sortable='true' order='activity' forceName='Last Post'}}
```

@sam, is there a way to make these work with localization? Our forum defaults to Finnish, but tech savvy people generally prefer English. One of these user groups is going to get these labels in a wrong language, depending on what I have there as a hard coded solution.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26. Dezember 2015 um 00:20 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/226 "2015-12-26T00:20:51Z")

</div>

It is tricky, we would need a core change for that

---

<div class="post-metadata">

### Author: ![Fred\_vom\_Jupiter](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@Fred\_vom\_Jupiter](https://meta.discourse.org/u/Fred_vom_Jupiter)
#### Post date: [9. März 2016 um 12:47 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/227 "2016-03-09T12:47:44Z")

</div>

how can is Use the kind of Styling for only **one** category?

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [9. März 2016 um 14:54 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/228 "2016-03-09T14:54:30Z")

</div>

preface every selector with .categoryname, so instead of

```plaintext
.topic-list td {
    padding-bottom: 10px;
}

```

you have

```plaintext
.categoryname .topic-list td {
    padding-bottom: 10px;
}

```

you can discover the .categoryname of a category by viewing the topic list in that category and inspect the source. The main `<body>` tag for that page will have a class like “category-foobar”

EDIT: Ah I missed that there was custom JS. That’s outside my knowledge I’m afraid!

---

<div class="post-metadata">

### Author: ![Fred\_vom\_Jupiter](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@Fred\_vom\_Jupiter](https://meta.discourse.org/u/Fred_vom_Jupiter)
#### Post date: [9. März 2016 um 15:24 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/229 "2016-03-09T15:24:09Z")

</div>

Thanks for your answer Tom 🙂 I found the body tag `<body class="docked category-features-vorschlagen">`

But I want to use @sam’s style just for one category. But if I paste the code inside my custom `</head>` it changes the style of every category. Is there a possibility to handle this?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [9. März 2016 um 21:30 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/230 "2016-03-09T21:30:24Z")

</div>

> [@Fred\_vom\_Jupiter](#):
>
> But if I paste the code inside my custom \</head\> it changes the style of every category.

It sounds like you used the “docked” selector instead of only the category specific selector.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9. März 2016 um 23:30 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/231 "2016-03-09T23:30:14Z")

</div>

## Is there a way to turn on showTopicPostBadges?

> [@sam](#):
>
> ```plaintext
> {{#if controller.showTopicPostBadges}}
> {{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
> {{/if}}
> 
> ```

[This post](https://meta.discourse.org/t/showoplikes-how-to-enable/37213/11) got me to where I could imagine answering this question, and I did manage to turn on showOpLikes, but I don’t see shopTopicPostBadges anywhere in the serializers.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [9. März 2016 um 23:52 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/232 "2016-03-09T23:52:16Z")

</div>

> [@Fred\_vom\_Jupiter](#):
>
> But I want to use @sam’s style just for one category.

This is in the, can be done but extremely complicated department and would probably require some core changes.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [27. März 2016 um 10:57 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/233 "2016-03-27T10:57:58Z")

</div>

i just want to use the category part of this topic-list, that’s to show the categories in a de-emphasize way beneath the topic (with the same style you used in the main image, i.e. using tag image as the visualization.

would you mind guiding me which part of the code to use?

p.s: i used the shared code, and everything has been implemented but not the category part! don’t know why.

thanks in advance,

---

<div class="post-metadata">

### Author: ![Overmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overmind/32/55446_2.png) [@Overmind](https://meta.discourse.org/u/Overmind)
#### Post date: [5. Juni 2016 um 04:30 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/234 "2016-06-05T04:30:50Z")

</div>

> [@Pad\_Pors](#):
>
> i used the shared code, and everything has been implemented but not the category part! don’t know why.

Just tested it and noticed the same. Categories don’t show up on /latest anymore. Using the preview here or on another site. Probably a bug from a recent update or is it not added to the OP @sam?

Edit: Also seems that it breaks the moderation tools. (Hides them, even if forced, still hides the check boxes for example inside a category to mass edit threads.)

---

<div class="post-metadata">

### Author: ![probus](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@probus](https://meta.discourse.org/u/probus)
#### Post date: [28. Juni 2016 um 08:59 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/239 "2016-06-28T08:59:03Z")

</div>

Die Avatare und Benutzernamen des letzten Posters fehlen in der Liste der vorgeschlagenen Themen, wenn dieses Theme verwendet wird:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/6/460fe43431a811f439c94b2e610eecddad0277d0.png)

Schritte zur Reproduktion:

1. Öffnen Sie [Sam's Simple Theme - #239 by probus](https://meta.discourse.org/t/sams-personal-minimal-topic-list-design/23552/239?preview-style=589a2b8f-237f-4408-b86b-2d5f158b22b6)
2. Beachten Sie die fehlenden Informationen (alle/einige/keine). Ändern Sie ggf. den privaten Modus oder den Browser.

Gibt es eine einfache Möglichkeit, dies zu beheben? Sollte ich ein #contribute:bug-, #contribute:feature- oder #support-Thema eröffnen? Dies betrifft meiner Kenntnis nach jede Seite, die eine Variante des Minimal-Themes verwendet.

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [5. Juli 2016 um 20:37 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/240 "2016-07-05T20:37:40Z")

</div>

Hm… I’m getting a `Error: Could not find module discourse/views/topic-list-item`- both here on Meta, and on my own site. I rely on the part

`(function(){
var TopicListItemView = require('discourse/views/topic-list-item').default;
  TopicListItemView.reopen({`  
…which does not work any more on the latest beta. Does anyone have any insight in this? Grepping around did not produce any useable `TopicListView` or `ShowCategory` methods.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5. Juli 2016 um 21:41 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/241 "2016-07-05T21:41:51Z")

</div>

Yeah just change the word view to component

---

<div class="post-metadata">

### Author: ![ky\_metro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ky_metro/32/42807_2.png) [@ky\_metro](https://meta.discourse.org/u/ky_metro)
#### Post date: [25. September 2016 um 18:31 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/242 "2016-09-25T18:31:33Z")

</div>

Theme appears to be broken with the last few updates. Any clues?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28. September 2016 um 09:20 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/243 "2016-09-28T09:20:08Z")

</div>

Confirmed, I will have a look at sorting this out

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28. September 2016 um 10:11 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/244 "2016-09-28T10:11:27Z")

</div>

The theme is actually fine, the issue is that our transpiler changed so you need to invalidate a cache.

@eviltrout will fix it so it happens automatically, but in the mean time just add a space into the HEAD section with all the customizations and save, then it will work.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [28. September 2016 um 11:27 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/245 "2016-09-28T11:27:35Z")

</div>

Oops, fixed that here:

[https://github.com/discourse/discourse/commit/a69b897545a3a7d21414d3b8957a0a20bfe2af28](https://github.com/discourse/discourse/commit/a69b897545a3a7d21414d3b8957a0a20bfe2af28)

---

<div class="post-metadata">

### Author: ![DanteZii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dantezii/32/81726_2.png) [@DanteZii](https://meta.discourse.org/u/DanteZii)
#### Post date: [11. Dezember 2016 um 16:47 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/246 "2016-12-11T16:47:29Z")

</div>

me too 🙂

---

<div class="post-metadata">

### Author: ![plyoung](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/plyoung/32/114506_2.png) [@plyoung](https://meta.discourse.org/u/plyoung)
#### Post date: [19. Februar 2017 um 09:34 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/247 "2017-02-19T09:34:35Z")

</div>

This is awesome. Helps a lot since I have the Sidebar Blocks plugin enabled.

[Vorherige Seite](https://meta.discourse.org/t/sams-simple-theme/23552.md?page=11)

[Nächste Seite](https://meta.discourse.org/t/sams-simple-theme/23552.md?page=13)
