# Line width of text in posts - how to increase it to take advantage of monitor resolution

**URL:** <https://discuss.write.as/t/line-width-of-text-in-posts-how-to-increase-it-to-take-advantage-of-monitor-resolution/92>\
**Category:** Customization\
**Created:** [September 24, 2018, 6:44pm UTC](https://discuss.write.as/t/line-width-of-text-in-posts-how-to-increase-it-to-take-advantage-of-monitor-resolution/92 "2018-09-24T18:44:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [September 24, 2018, 10:02pm UTC](https://discuss.write.as/t/line-width-of-text-in-posts-how-to-increase-it-to-take-advantage-of-monitor-resolution/92/4 "2018-09-24T22:02:21Z")

</div>

Yep, both the CSS and JS is included on every blog page. (The only caveat with the JS is that your _Preferred URL_ in your blog settings has to be _[yourblog.writeas.com](http://yourblog.writeas.com)_ or a custom domain.)

But if you want different code to run on different pages, you’ll check something like the `window.location.pathname` for what page you’re on, e.g.

```auto
if (window.location.pathname == '/') {
    // Blog index page
} else if (window.location.pathname.lastIndexOf('/tag:') == 0) {
    // Blog tag pages
} else {
    // Blog posts
}

```

---

_[View the full topic](https://discuss.write.as/t/line-width-of-text-in-posts-how-to-increase-it-to-take-advantage-of-monitor-resolution/92)._
