# Custom CSS ignored on GH Project Page (but works on GH User Page!)

**URL:** <https://talk.jekyllrb.com/t/custom-css-ignored-on-gh-project-page-but-works-on-gh-user-page/2846>\
**Category:** Help\
**Created:** [April 20, 2019, 1:33pm UTC](https://talk.jekyllrb.com/t/custom-css-ignored-on-gh-project-page-but-works-on-gh-user-page/2846 "2019-04-20T13:33:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjauvin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/cjauvin/32/1642_2.png) [@cjauvin](https://talk.jekyllrb.com/u/cjauvin)\
**Post date:** [April 20, 2019, 1:33pm UTC](https://talk.jekyllrb.com/t/custom-css-ignored-on-gh-project-page-but-works-on-gh-user-page/2846/1 "2019-04-20T13:33:46Z")

</div>

I’m trying to override my theme’s CSS using this technique:

> **[How to Override CSS Styles in Jekyll](https://tomkadwill.com/2017/12/16/how-to-override-css-styles-in-jekyll.html)**
>
> There are many themes available for Jekyll, allowing you to choose the look and feel of your site. In addition to picking a theme, Jekyll allows you to further customise the style of your site. Here are the steps required to override a theme’s CSS:

on my GH Project:

> **[cjauvin/imbroglio](https://github.com/cjauvin/imbroglio)**
>
> Contribute to cjauvin/imbroglio development by creating an account on GitHub.

No matter where I put the two CSS rules I want to override (in `_sass/cjauvin.scss` after having `@import`ed it in `assets/css/style.scss`, or directly there), they are not being used:

> **[IMBROGLIO](https://cjauvin.github.io/imbroglio/)**
>
> Tech Consultant based in Montreal

This is for a GH **Project** page, but strangely, when I test the same setup in my GH **User** page, it works. What do I do wrong? (it’s also working locally of course)

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [April 20, 2019, 3:26pm UTC](https://talk.jekyllrb.com/t/custom-css-ignored-on-gh-project-page-but-works-on-gh-user-page/2846/2 "2019-04-20T15:26:25Z")

</div>

this is very common - in a project your project name is part of the path. In your user page it is not. So you need to include the project name in all paths, usually this is done with baseurl as a site variable in the config file, then you prepend that to your urls. That way you can leave it blank if you don’t need it, or put something there if you do.

---

<div class="post-metadata">

**Author:** ![cjauvin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/cjauvin/32/1642_2.png) [@cjauvin](https://talk.jekyllrb.com/u/cjauvin)\
**Post date:** [April 20, 2019, 4:26pm UTC](https://talk.jekyllrb.com/t/custom-css-ignored-on-gh-project-page-but-works-on-gh-user-page/2846/3 "2019-04-20T16:26:09Z")

</div>

That is exactly right, thanks a lot for your rapid answer! Setting the `baseurl` was indeed all that I needed to do.
