# Blog post plugin

**URL:** https://meta.discourse.org/t/blog-post-plugin/34739
**Category:** Plugin
**Tags:** broken
**Created:** [October 21, 2015, 12:45am UTC](https://meta.discourse.org/t/blog-post-plugin/34739 "2015-10-21T00:45:02Z")
**Posts on this page:** 11
**Page:** 3

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 16, 2018, 6:29pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/42 "2018-03-16T18:29:03Z")

</div>

I haven’t looked at this in over a year, so I’m not surprised that it’s broken. Since Discourse now adds a Category class to the `body` tag, it should be fairly simple to give individual styles to categories. For example, this post has the class `category-plugin-broken-plugin` to indicate its parent and sub category.

---

<div class="post-metadata">

### Author: ![trudat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trudat/32/104354_2.png) [@trudat](https://meta.discourse.org/u/trudat)
#### Post date: [March 16, 2018, 6:49pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/43 "2018-03-16T18:49:01Z")

</div>

> [@simon](#):
>
> Since Discourse now adds a Category class to the body tag

Just checked the source on the body tag on my Discourse and there is no category class there. Is that supposed to be on by default?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 16, 2018, 6:53pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/44 "2018-03-16T18:53:48Z")

</div>

Yes, it should be added. You need to select ‘inspect’ for the page, not ‘view page source.’ On Chrome, right click and select ‘inspect’ from the menu. On Firefox, select ‘inspect element.’

---

<div class="post-metadata">

### Author: ![trudat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trudat/32/104354_2.png) [@trudat](https://meta.discourse.org/u/trudat)
#### Post date: [March 16, 2018, 6:57pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/45 "2018-03-16T18:57:05Z")

</div>

> [@simon](#):
>
> You need to select ‘inspect’ for the page, not ‘view page source.’

ok, I see it now. That’s … weird. Why doesn’t the page source show css classes, is that an ember thing?

Going to load your plugin’s css on one of my categories… fingers crossed.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 16, 2018, 6:57pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/46 "2018-03-16T18:57:41Z")

</div>

> [@trudat](#):
>
> Why doesn’t the page source show css classes

It’s added with javascript.

---

<div class="post-metadata">

### Author: ![trudat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trudat/32/104354_2.png) [@trudat](https://meta.discourse.org/u/trudat)
#### Post date: [March 16, 2018, 7:54pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/47 "2018-03-16T19:54:36Z")

</div>

Ok this is quick and dirty. I used the css below to hide some page elements give a more streamlined look to posts in a given category. It’s not a blog, but it’s something.

```
.category-your-category-name .topic-meta-data {
  display: none;
}

.category-your-category-name .topic-avatar {
  display: none;
}

.category-your-category-name .topic-timeline {
  display: none;
}

.category-your-category-name #topic-footer-buttons {
  display: none;
}

.category-your-category-name #main-outlet {
  padding-left: 40px;
}

```

---

<div class="post-metadata">

### Author: ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)
#### Post date: [March 19, 2018, 1:02pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/49 "2018-03-19T13:02:47Z")

</div>

So the plugin working ? or not?

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/e/6e83c44126069f5ff4b419e3be5685efe52dcbd6.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/a/9/a9df96a0f57d33d7e80eebe488dbe3c9030986dd.png)  
NOT WORKING!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 19, 2018, 3:31pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/50 "2018-03-19T15:31:52Z")

</div>

This plugin is not working. That is why this topic is in the #plugin:broken-plugin category.

---

<div class="post-metadata">

### Author: ![manzana](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manzana](https://meta.discourse.org/u/manzana)
#### Post date: [November 3, 2018, 12:01am UTC](https://meta.discourse.org/t/blog-post-plugin/34739/51 "2018-11-03T00:01:55Z")

</div>

Any real alternative to this plugin? I liked how the blog was shown and I don’t really like how WP-Discourse works

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 3, 2018, 6:50pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/52 "2018-11-03T18:50:15Z")

</div>

> [@manzana](#):
>
> Any real alternative to this plugin?

The easiest alternative would be to use the category class that is added to the `body` tag of each Discourse topic to create CSS styles for a category. I think that everything this plugin was doing can now be done in a Discourse theme.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 3, 2018, 6:50pm UTC](https://meta.discourse.org/t/blog-post-plugin/34739/53 "2018-11-03T18:50:20Z")

</div>



[Previous page](https://meta.discourse.org/t/blog-post-plugin/34739.md?page=2)
