-
AuthorPosts
-
TomC Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 16, 2013 at 5:53 pm #186817I often see questions related to confusion as to how to utilize module class suffixes within your JoomlArt template-based websites. The following is a brief tutorial – with additional references/resources – that I hope will help you to understand the process.
You can use module class suffix to distinguish that module from others with regard to the css classes it uses.
Using the JA OnePage template as an example . . . . .
You can create module class suffix as follows . . . .
1. Add new code block into templates/ja_onepage/css/custom.css
example:
.hero-unit {
margin: 59px 0 0;
padding: 0;
text-align: center;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
}2. Add your module class suffix within the selected module as follows:
Here are some additional resources concerning using module class suffix in Joomla . . . ..
JOOMLA DOCS: MODULE CLASS SUFFIX
USING TYPOGRAPHY PAGE to IDENTIFY MODULE CLASSES
Hope this helps to de-mystify some of the confusion in using module class suffixes to modify/customize
your JoomlArt based website.😎
5 users say Thank You to TomC for this useful post
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
January 31, 2014 at 4:40 pm #520652What if you are working with one of the new Boostrap templates in development mode driven by the multitude of LESS CSS files? Which LESS file do we use to intput our custom code? From where will the system fetch the new class styling? Things are so much more complicated now compared to the simple old-fashioned scenario you outline here.
Thank you.gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
January 31, 2014 at 6:46 pm #520670Just a note to everyone who’s working in development mode on a LESS-driven site. You will find that the LESS files don’t contain a big long style.css file. Everything is broken up into small bites. For example, T-3 modulestyle has its own little LESS file. At the end of that file is where you input your custom module styling. So, I’ve created a class called {keyboard space}Cool. And I want this module to have a black background. At the end of LESS modulestyle CSS file I type in:
.Cool
{
background: #000
}Plus whatever custom parameters you want including text styling and borders etc.
That’s it.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 5, 2014 at 3:20 pm #537909Here are some additional UPDATED resources which may be helpful . . .
http://docs.joomla.org/Using_Class_Suffixeshttp://docs.joomla.org/Module_Class_Suffix
http://davidpattinson.co/how-to-use-joomla-module-class-suffix/
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by TomC 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum