Skip to main content
Support

Condense Top Article Spacing on Bars V4

This only works for the V4 Bars template, and this code is no longer maintained. V5 Bars already shows top articles in a row, so it doesn't need it. We strongly recommend upgrading to a V5 template i…

River Sloane
Updated by River Sloane
1 min read
This only works for the V4 Bars template, and this code is no longer maintained. V5 Bars already shows top articles in a row, so it doesn't need it. We strongly recommend upgrading to a V5 template instead.

Our Bars V4 template has a large header to make the top articles stand out. If you want to make the header a little smaller you can add some code to condense it down a little so they appear side-by-side.

This code snippet works with our stock V4 Bars theme. If you're using a custom version using HTML templates there may be other customizations required.

Condense Top Article Spacing on Bars V4

  1. Head to Settings > Customize > Code > CSS
  2. Paste the following code:
@media only screen and (min-width: 1000px) {
#topArticles .taList {
grid-template-columns: 1fr 1fr 1fr;
}
}
  1. Hit Publish (you'll see Save instead if your plan doesn't include drafts)

Now your top articles will show side-by-side in a nice little row πŸ’–

What did you think of this doc?

Previous Disabling Top Articles Next Overriding the Font on Your Knowledge Base

Get in touch