Read the statement by Michael Teeuw here.
Usage of "classes" Parameter
-
The module configuration documentation says that you can set a custom “classes” parameter and specify css classes for a module. I am displaying several modules on multiple pages where the main page has a small “snapshot” bit of information, and then on another page I have more in-depth information (calendars, weather forecasts, etc.). I’d like to adjust the font size for the module on only one of the pages. What is the format of using the “classes” parameter then? I’ve tried this for the config:
... module: 'module-name', classes: 'myclass', ...and then something like this in the custom.css:
.module-name .myclass { font-size: 50px; }but it doesn’t seem to be taking, so I’m assuming I’m doing it wrong and haven’t been able to find any examples. Any help would be great. Thanks!
-
@tylerj714 i think these classes are without the module prefix
you should be able to see the classes assigned in the developers window elements tab
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login