Hi guys. Sorry for my bad english. I am noob in plugin development. Just that, I am developing a plugin with Material Desing CSS. This plugin works on The Wire but my problem is I need use this CSS just in The Wire. When I load this CSS, this modify a lot of tag like a, h1, h2, of ELGG CSS core. There a way to load the css only on the wire?
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.
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
- Víctor Ibáñez Campos@victoribanezc
Víctor Ibáñez Campos - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Víctor Ibáñez Campos@victoribanezc
Víctor Ibáñez Campos - 0 likes
- Steve Clay@steve_clay
Steve Clay - 1 like
- Víctor Ibáñez Campos@victoribanezc
Víctor Ibáñez Campos - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Víctor Ibáñez Campos@victoribanezc
Víctor Ibáñez Campos - 0 likes
You must log in to post replies.Override a view:
http://learn.elgg.org/en/2.0/guides/views.html#overriding-views
http://learn.elgg.org/en/2.0/guides/views.html#views-as-cacheable-assets
Does not work. I tried this method and this happen (I need to load material design css just in The Wire section)
Use the [route, thewire] plugin hook. Use elgg_load_css there.
I do not understand how to implement it. Any documentation?
Routing: http://learn.elgg.org/en/2.x/guides/routing.html#the-route-plugin-hook
Using plugin hooks: http://learn.elgg.org/en/2.x/design/events.html#plugin-hooks
Loading CSS: http://learn.elgg.org/en/2.x/guides/views.html#views-as-cacheable-assets
Ok, works and only load material css in just in The Wire page. But I have the same problem with the styles just in The Wire. There any way that is loaded only in the section of the post?
You have to use CSS selectors to limit changes to the post.
.thewire-post .elgg-content a { /* links within wire posts */ }
And that I should place in materialize css, extension view or hook?