# Category logo size on specific categories - only applied when accessed directly

**URL:** <https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032>\
**Category:** Bug\
**Created:** [April 2, 2024, 11:41am UTC](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032 "2024-04-02T11:41:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bryce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryce/32/377822_2.png) [@bryce](https://meta.discourse.org/u/bryce)\
**Post date:** [April 5, 2024, 12:23am UTC](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032/2 "2024-04-05T00:23:53Z")

</div>

Hmm, that’s an unusual problem!

I noticed that depending how you get to the page, the classes assigned to `<body>` are in a different order:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/b/3/fb3346b5d9909a3615f0555d9b6c2bd6070df62f.png)  
The "`^"` symbol in “`body[class^="category-contests"]`” makes it search for a match only at the start of the list of classes, so my guess is that it was only working when ‘category-contest’ was the first class on the list.

There’s another symbol “`*`” that will search for a match anywhere in the class list. You could try changing the first part to this:

```plaintext
body[class*="category-contests"]
          ↑ (* instead of ^)

```

Or a simpler way to write this would be:

```plaintext
body.category-contests

```

Let me know if that helps!

---

_[View the full topic](https://meta.discourse.org/t/category-logo-size-on-specific-categories-only-applied-when-accessed-directly/302032)._
