-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change theme #780
Comments
Hi @effemmeffe! Theme switching was introduced in #502 & #705 and allows selecting the active theme through the administration UI. The first release to feature will be There is an embryo of documentation at https://github.com/shaarli/Shaarli/wiki/Theming , I recommend you take a look at existing themes to see how they work |
I saw that part of the documentation, but I think it's a little outdated. It says that to change theme I should put a user.css in the inc folder. |
Nope, the confusion is on our side (docs); we (used to?) have a distinction between:
In this light, Modern / actually maintained visual template customizations are also referred as themes, we should define a clearer naming to avoid this kind of confusion, ping @nodiscc @ArthurHoaro |
I tried to put the serious theme's files in the data directory, but it doesn't work. I still have the default theme. |
Hi @effemmeffe! You may have made a mistake at some point, because I just tried, and it's working fine. # download
wget https://github.com/shaarli/Shaarli/releases/download/v0.8.3/shaarli-v0.8.3-full.tar.gz
# extract
tar xfz shaarli-v0.8.3-full.tar.gz
# go to inc/
cd Shaarli/inc
# download the theme
wget https://raw.githubusercontent.com/mrjovanovic/serious-theme-shaarli/master/user.css @virtualtam You're right. CSS themes are kinda outdated anyway. I suppose we can refer to them as custom CSS. |
Let's go for "custom CSS" / themes, I'll update the docs accordingly ;-) |
Nice! I've made a minor change regarding the CSS path. @effemmeffe were we able to help you with your issue? |
@ArthurHoaro there is something wrong somewhere: I removed the user.css from my inc/ folder, pasted your commands and still have the original look. I managed to change the look by installing a new template, but I can't see the custom CSS. |
Now I downloaded the serious.css from the new theme page in the wiki and it worked. |
Glad to know you got it working, have fun using Shaarli :) |
Is there some guide on how to upgrade old user.css/themes to work with the latest release 0.93? |
No, there is not. For themes, you would have to keep up with the changelog and the commit log of the |
I can't find documentation about how to change theme and how to create a new one, can please point me in the right direction?
The text was updated successfully, but these errors were encountered: