Category Blog
Sign Up

Category Blog

Hide Divs, Content, and Modules

One of the biggest obstacles to overcome when designing a responsive layout site is that not all content, images and extensions were designed to work with responsive layouts. That means that sometimes you need the ability to hide a specific element on only certain sized screens, so that something doesn't break the site's layout and everything looks proportionate. We've made that all possible and very easy to do for you with hiding classes! There are three main ways to hide content on different size screens, and they are documented below. Please note that these classes are only enabled when the responsive layout is enabled.



Hide Sections of the Template via the Template Configuration

This is the simplest way to hide an area of the template is to use the template interface to easily select areas of the template that you want to hide on tablet sized screens (970px and less) or mobile screens (580px or less). Simply select the area that you want to hide and the Vertex framework takes care of the rest! These fields do work independent of each other, so if you want to hide something on both tablet and mobile sized screens you must select the same area on both fields.



IMPORTANT - If you turn off a column position such as right or right_inset something else must be in the same column or the layout will not work. For example you can turn off right_inset and keep right, but you cannot turn off both unless something is publihsed to right_top or right_bottom as well.

Hide Specific Modules via the Hide Classes

If you have only a specific module that you would like to hide at certain screen sizes, and not an entire section of the template, this is the best approach. A hide class is a class that can be applied to any element on the page and hides that particular element at certain screen sizes. Classes range in 100px increments for large screens and 50px increments for small screens. Below are some examples, and at the very bottom of this page there is a list of all the available hide classes. Use these sparingly if you can. As a recommendation, the primary target of these classes should focus on tablet and mobile sized screens. Wide screen monitors vary in size so it's much harder to use these classes correctly for large monitors. Tablet and mobile devices are much more consistent in size so it is much easier to apply the smaller hide classes.

For example, say you want to hide a specific module when the screen sizes reaches 900px wide, and remain hidden for any screen below 900px. Simply add class=hide_900 to the title of the module like this:



The class is simply put into the title of the module. There must be a space just before class= , and don't worry, the class area of the title won't actually show on the live site, it's only shown in the backend. It must be entered exactly as shown above. The title can be published or unpublished, it does not matter which. Simply adding the classes to the title will apply the classes to the entire module.

What if you want it to hide the module only for a certain range? That's easy just add _only to the end of the class name. hide_900_only will only hide that element from 900px to the next increment in the hide classes, which is 850px. So it will only be hidden from 850px to 900px. You can also add multiple classes to the title like this class=hide_900_only hide_850_only which will apply both classes to the module.

What if you want to hide the module and then show it again later? That's simple, use show_ in the class instead of hide_. This will make the module show for the specified size no matter what other settings are on the module. So if you want to hide the module from 1000px and below, but you want to show it again later then do something like the following class=hide_1000 show_600. This will hide the module from 600px to 1000px.

Is there a more simple way? Yes, of course, the above directions are for experienced users who want to tweak their content for every available screen size. If you don't want to mess around with specific window sizes simply use the following classes instead, which have preset screen sizes applied to them:

hide_wide_screen
hide_standard_screen
hide_large_tablet
hide_small_tablet
hide_mobile
show_wide_screen
show_standard_screen
show_large_tablet
show_small_tablet
show_mobile

Hide Specific Content via the Hide Classes

If you have only specific content or images within an article or module that you want to hide then use the same hide classes described above, but wrap that specific content inside of the class instead of applying it to the entire module. For example, in the image below, the third paragraph will hide at 900px and then show again at 700px.



Available Hide Classes

All the available hide classes are listed below. Note there is a break at 970px and 580px to accommodate tablet and mobile sized screens.

@media screen and (max-width: 1600px){
.hide_1600 {
display:none;
}
}

@media screen and (min-width:1500px) and (max-width: 1600px){
.hide_1600_only {
display:none;
}
}

@media screen and (max-width: 1600px){
.show_1600 {
display:inline;
}
}

@media screen and (min-width:1500px) and (max-width: 1600px){
.show_1600_only {
display:inline;
}
}

@media screen and (max-width: 1500px){
.hide_1500 {
display:none;
}
}

@media screen and (min-width:1400px) and (max-width: 1500px){
.hide_1500_only {
display:none;
}
}

@media screen and (max-width: 1500px){
.show_1500 {
display:inline;
}
}

@media screen and (min-width:1400px) and (max-width: 1500px){
.show_1500_only {
display:inline;
}
}

@media screen and (max-width: 1400px){
.hide_1400 {
display:none;
}
}

@media screen and (min-width:1300px) and (max-width: 1400px){
.hide_1400_only {
display:none;
}
}

@media screen and (max-width: 1400px){
.show_1400 {
display:inline;
}
}

@media screen and (min-width:1300px) and (max-width: 1400px){
.show_1400_only {
display:inline;
}
}

@media screen and (max-width: 1300px){
.hide_1300 {
display:none;
}
}

@media screen and (min-width:1200px) and (max-width: 1300px){
.hide_1300_only {
display:none;
}
}

@media screen and (max-width: 1300px){
.show_1300 {
display:inline;
}
}

@media screen and (min-width:1200px) and (max-width: 1300px){
.show_1300_only {
display:inline;
}
}

@media screen and (max-width: 1200px){
.hide_1200 {
display:none;
}
}

@media screen and (min-width:1100px) and (max-width: 1200px){
.hide_1200_only {
display:none;
}
}

@media screen and (max-width: 1200px){
.show_1200 {
display:inline;
}
}

@media screen and (min-width:1100px) and (max-width: 1200px){
.show_1200_only {
display:inline;
}
}

@media screen and (max-width: 1100px){
.hide_1100 {
display:none;
}
}

@media screen and (min-width:1000px) and (max-width: 1100px){
.hide_1100_only {
display:none;
}
}

@media screen and (max-width: 1100px){
.show_1100 {
display:inline;
}
}

@media screen and (min-width:1000px) and (max-width: 1100px){
.show_1100_only {
display:inline;
}
}

@media screen and (max-width: 1000px){
.hide_1000 {
display:none;
}
}

@media screen and (min-width:900px) and (max-width: 1000px){
.hide_1000_only {
display:none;
}
}

@media screen and (max-width: 1000px){
.show_1000 {
display:inline;
}
}

@media screen and (min-width:900px) and (max-width: 1000px){
.show_1000_only {
display:inline;
}
}

@media screen and (max-width: 970px){
.hide_970 {
display:none;
}
}

@media screen and (min-width:900px) and (max-width: 970px){
.hide_970_only {
display:none;
}
}

@media screen and (max-width: 970px){
.show_970 {
display:inline;
}
}

@media screen and (min-width:900px) and (max-width: 970px){
.show_970_only {
display:inline;
}
}

@media screen and (max-width: 900px){
.hide_900 {
display:none;
}
}

@media screen and (min-width:850px) and (max-width: 900px){
.hide_900_only {
display:none;
}
}

@media screen and (max-width: 900px){
.show_900 {
display:inline;
}
}

@media screen and (min-width:850px) and (max-width: 900px){
.show_900_only {
display:inline;
}
}

@media screen and (max-width: 850px){
.hide_850 {
display:none;
}
}

@media screen and (min-width:800px) and (max-width: 850px){
.hide_850_only {
display:none;
}
}

@media screen and (max-width: 850px){
.show_850 {
display:inline;
}
}

@media screen and (min-width:800px) and (max-width: 850px){
.show_850_only {
display:inline;
}
}

@media screen and (max-width: 800px){
.hide_800 {
display:none;
}
}

@media screen and (min-width:750px) and (max-width: 800px){
.hide_800_only {
display:none;
}
}

@media screen and (max-width: 800px){
.show_800 {
display:inline;
}
}

@media screen and (min-width:750px) and (max-width: 800px){
.show_800_only {
display:inline;
}
}

@media screen and (max-width: 750px){
.hide_750 {
display:none;
}
}

@media screen and (min-width:700px) and (max-width: 750px){
.hide_750_only {
display:none;
}
}

@media screen and (max-width: 750px){
.show_750 {
display:inline;
}
}

@media screen and (min-width:700px) and (max-width: 750px){
.show_750_only {
display:inline;
}
}

@media screen and (max-width: 700px){
.hide_700 {
display:none;
}
}

@media screen and (min-width:650px) and (max-width: 700px){
.hide_700_only {
display:none;
}
}

@media screen and (max-width: 700px){
.show_700 {
display:inline;
}
}

@media screen and (min-width:650px) and (max-width: 700px){
.show_700_only {
display:inline;
}
}

@media screen and (max-width: 650px){
.hide_650 {
display:none;
}
}

@media screen and (min-width:600px) and (max-width: 650px){
.hide_650_only {
display:none;
}
}

@media screen and (max-width: 650px){
.show_650 {
display:inline;
}
}

@media screen and (min-width:600px) and (max-width: 650px){
.show_650_only {
display:inline;
}
}

@media screen and (max-width: 600px){
.hide_600 {
display:none;
}
}

@media screen and (min-width:580px) and (max-width: 600px){
.hide_600_only {
display:none;
}
}

@media screen and (max-width: 600px){
.show_600 {
display:inline;
}
}

@media screen and (min-width:580px) and (max-width: 600px){
.show_600_only {
display:inline;
}
}

@media screen and (max-width: 579px){
.hide_580 {
display:none;
}
}

@media screen and (min-width:550px) and (max-width: 579px){
.hide_580_only {
display:none;
}
}

@media screen and (max-width: 579px){
.show_580 {
display:inline;
}
}

@media screen and (min-width:550px) and (max-width: 579px){
.show_580_only {
display:inline;
}
}

@media screen and (min-width:1300px) and (max-width: 50000px){
.hide_wide_screen {
display:none;
}
}

@media screen and (min-width:971px) and (max-width: 1299px){
.hide_standard_screen {
display:none;
}
}

@media screen and (min-width:750px) and (max-width: 970px){
.hide_large_tablet {
display:none;
}
}

@media screen and (min-width:580px) and (max-width: 750px){
.hide_small_tablet {
display:none;
}
}

@media screen and (min-width:580px) and (max-width: 750px){
.hide_small_tablet {
display:none;
}
}

@media screen and (max-width: 579px){
.hide_mobile {
display:none;
}
}

@media screen and (min-width:1300px) and (max-width: 50000px){
.show_wide_screen {
display:inline;
}
}

@media screen and (min-width:971px) and (max-width: 1299px){
.show_standard_screen {
display:inline;
}
}

@media screen and (min-width:750px) and (max-width: 970px){
.show_large_tablet {
display:inline !important;
}
}

@media screen and (min-width:580px) and (max-width: 750px){
.show_small_tablet {
display:inline !important;
}
}

@media screen and (max-width: 579px){
.show_mobile {
display:inline !important;
}
}


I like what I see! I want to JOIN TODAY.

3rd Party Component Compatibility

This template is compatible with all the major 3rd party components available for Joomla. The following are just some of the ones available that work great with any Shape 5 template. A template itself should in no way hinder the functionality of a component. Although we haven't tested every single Joomla component available we can say quite confidently that this template will be compatible with any Joomla extension you use with it.


And many more!

Hide Article Component Area

Did you ever need to create a page where this is no article present or no component to be shown, and only load modules? This template makes it all possible! From the template configuration page you can hide the main content area on any page on the site.

Below is a screenshot of this function from the configuration page, found under the General tab:

S5 Drop Down Panel

The S5 Drop Down Panel is a slide down panel that can be demo'd at the top of this page. The panel itself contains six module positions. You may publish any module that you wish into these positions. It comes packed with features so be sure to check out the list and screenshot below.

Note - If the responsive layout is enabled the drop down will disable when the screen size reaches 750px so that it does not interfere with the mobile menu bar


  • Customize almost everything! Shadows, borders, gradient, opacity
  • Contains 6 module positions drop_down_1, drop_down_2, drop_down_3, drop_down_4, drop_down_5 and drop_down_6
  • Auto adjust to the height of your content
  • Set your own open and close text
  • Auto collapse if no modules are published to it
  • And many more features!


Screenshot of Drop Down admin in template configuration area:


Lazy Load Images

The lazy load script is a great way to save bandwidth and load your pages much faster. Images that are not visible on the initial page load are not loaded or downloaded until they come into the main viewing area. Once an image comes into view it is then downloaded and faded into visibility. Scroll down this page to see the script in action.

Setup is very easy! By default this script is disabled, in order to enable it simply choose All Images or Individual Images from the drop down, as shown below from inside the template configuration page.



All images will load every standard image on the page with lazy load. There is no extra configuration or extra code to add with this configuration, it will just happen automatically. Individual images would be used if you want only certain images to load with this script and not all of them. To do this simply add class="s5_lazyload" to the image like so:
<img class="s5_lazyload" src="http://www.yoursite.com/image.jpg"></img>


This script is compatible with Firefox3+, IE8+, Chrome14+, Safari5.05+, Opera 11.11+

See the script in action:


Get to know our team

We are Creative, motivated and innovative




screenshot

Brian Felds



screenshot

Andrew Weston



screenshot

Michelle Darby



screenshot

Lisa Davis



screenshot

Frank Nelson






Grab a free copy and test drive today!
To get started simply signup for a free account and login
Free Vertex
DOWNLOAD