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.

Responsive module classes

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

How does one implement a responsive module class?

The template has these two responsive classes for phone-sized displays:
visible-phone
hidden-phone

Say I want to hide the site banner for phone-sized displays. The banner currently resides in its own module, and appears in the template's grid in the "top1" position.

1. Where would the code for the "hidden-phone" class reside? E.g., in the banner's module, in custom CSS?

2. What is the syntax for the relevant code?

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Jim,

You would add the responsive module class to the module class box in the module itself

You don't need to add any css if you want to hide the module

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Paul,

Could you please identify exactly how I'd use "module class box"?

In Extensions > Modules > [module name] > Advanced, we have a "Module Class Suffix" box and a "Module Style" box. Would I enter "hidden-phone" in one of these?

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Jim,

It's the advanced tab > Module Class Suffix

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
hidden-phone.png


Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
That works. Thanks, Paul.

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Paul, can I put more than one code in the Module Class Suffix box? If so, how do I separate them?

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
No problem

Cheers
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
ah ok just add a space between classes

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

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

Happy Campers