Hi, I have several instances of the module in the GameNews template and I woulld like to have different formatting for the nspHeader class in different instances. how do I set each instance of the module to use a specific css file? thanks
Junior Boarder
GK User
Tue Nov 11, 2014 7:32 am
Its not possible to do it this way. Instead use override.css and target each NSP using it's parent module class.
Moderator
GK User
Tue Nov 11, 2014 7:41 am
Thanks for the clarification. I was thinking of going down that route but was wondering if there was a more elegant way to proceed.
Junior Boarder
GK User
Wed Nov 12, 2014 7:06 pm
Is there anything else I can help you with regarding this topic?
Moderator
GK User
Thu Nov 13, 2014 12:07 am
No I am good thank you, I did as you suggested and got the modules to look as I wanted. Thanks a lot.
Junior Boarder
GK User
Thu Nov 13, 2014 4:50 pm
If you will have any other questions (not relative to this thread), feel free to post new forum threads - it allows us to answer you faster.
Moderator
GK User
Wed Dec 31, 2014 3:30 am
And how exactly is that done for those who are not as experienced? Thank you for your time and effort to explain.
Junior Boarder
GK User
Fri Jan 02, 2015 10:10 am
Its a customisation that requires a bit of css knowledge. If you don't know how to modify css then you will not be able to do anything with the provided information. Yet you might post your site url and if changes are small I can provide you with some quick tips.
Moderator
GK User
Fri Jan 02, 2015 11:21 am
I do now how to modify css to a certain extend. can we try by you telling me what i have to add to the override.css? Thank you so much and Happy Neew Year Cyberek
Junior Boarder
GK User
Sat Jan 03, 2015 10:49 am
You need to use firebug / chrome devtools, find unique section ID of module where the NSP is published and use it to prefix final css selector. You could also add additional class to module itself and use it as a css prefix.