mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-27 10:06:00 +03:00
[GH-ISSUE #1232] Question: Custom CSS doesn’t seem to load #2269
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vasilisvg on GitHub (Sep 24, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1232
I’ve been trying to add a custom CSS file, but somehow it doesn’t show up. And I’m not sure what I do wrong. If anybody can help, that would be nice.
In ArchiveBox.conf I’ve added this line:
I’ve tried all kinds of paths. Full paths like
/home/user/theme/, and relative paths liketheme/and./theme/, but nothing seems to work. I’ve tried re-initialising, I’ve tried restarting the server. Whatever I do, the CSS files are not loaded.If I understand it correctly I have to copy existing CSS files into this directory, and then they would be used instead of the originals, right? So I copied
base.cssdirectly into/path/to/archivebox/themes/and added my own custom lines. I’ve also added acss.cssfile, this is ignored as well.Whatever I do, if I open
http://127.0.0.1:8000/admin/core/snapshot/no custom CSS is loaded.I don’t know where to start debugging this. And I don’t know if it’s me not understanding how it works, or if it’s a bug. Here’s the output from
archivebox version.@pirate commented on GitHub (Sep 26, 2023):
The folder needs to be the same format as the templates dir in the codebase here: https://github.com/ArchiveBox/ArchiveBox/tree/dev/archivebox/templates
Place your css under
static/@vasilisvg commented on GitHub (Sep 27, 2023):
Thanks! This did the trick!