Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

module class suffix - where do you edit the style?

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

If you add a module class suffix to a module... does this generate a style you can edit somewhere?

I've looked beut could see an article relating to this.

Cheers

Jake
  • jakeholmes1's Avatar
  • jakeholmes1
  • 6 Month Developer
  • 77 posts
  • Karma: 0
The administrator has disabled public write access.
No. If the style does not already exist adding a module class won't do anyhting, you need to create the styling.

For example, you add the class -NewClass. You then have to add styling (preferably to theme css or your chosen hilite css, whichever is appropriate), e.g.:

.NewClass {color: #000; float: right}
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Actually sorry to correct you Seth.

if the module class is -newclass then the css should look like this in our templates.

.moduletable-newclass {}

Thats for use in modules that are referenced as xhtml. For some modules in some templates (Ive only used this once in Grid) the name of the moduel position is actually rounded and the module class actually look slike this:

.module-newclass {}
.module-newclass div {}
.module-newclass div div {}
.module-newclass div div div {}

Just in case you were wondering :)

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Oops! Yes, my bad. I should have engaged my brain before posting.

Thanks for picking up on my idiocy Anthony!!
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Cheers -

I've just done a quick test and it did the job

Thanks again
  • jakeholmes1's Avatar
  • jakeholmes1
  • 6 Month Developer
  • 77 posts
  • Karma: 0
The administrator has disabled public write access.
Cool thanks for getting back to us :)

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers