How Can I edit css files?
1. First method:
I read that i must make new plugin as themplate.
I add folder: "theme" in "mod"
In "theme" i created files: comopser.json and elgg-plugin.php
In elgg-plugin.php i write code like in tutorial:
<?php
return [
'view_extensions' => [
'elgg.css' => [
'theme/css' => [],
],
],
];
I crated folder css, and there put file elgg.css
I activated the plugin in admin panel.
And this doesnt work... Whatever I write in css file it doesnt shown at the front page....
2. Secong method:
I Tried also to ovverride files by making css files in /mod/theme/views/default/elements/
but it doesnt working too
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Kosula@Kosula
Kosula - 0 likes
You must log in to post replies.You can use this Skeleton plugin
In elgg-plugin.php add your mentioned code
after
That means your custom CSS file is located at:
You should create it with this path.
References:
https://learn.elgg.org/en/stable/guides/plugins.html#elgg-plugin-php
https://learn.elgg.org/en/stable/guides/plugins/plugin-skeleton.html
https://learn.elgg.org/en/stable/guides/guidelines.html
https://learn.elgg.org/en/stable/guides/themes.html
PS: so far there is no need for a Bootstrap class
ok thanks. Firstly to do this is important to turn off cache :) I made it right but cache on was the problem :)