You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 07-06-2014 18:11:05

henningbr
Contributors
From: Norway
Registered: 29-04-2014
Posts: 30
Website

Remove GroupTitle just for mobile-wiew?

Is it possible to not show the GroupTitle in mobile-wiew only, and show it in Desktop-wiew.

I know I set this code in the css

.groupTitle{
display:none !important;
visibility:hidden !important;
height:0 !important;
overflow:hidden !important;
}

But this hide the GroupTitle in both Desktop and mobile-wiew.

Last edited by henningbr (07-06-2014 18:12:39)

Offline

#2 07-06-2014 18:43:10

chrismaliszewski
Contributors
From: Torun, Poland
Registered: 06-05-2013
Posts: 246
Website

Re: Remove GroupTitle just for mobile-wiew?

Create a copy of config/layout.php in the same directory, name it differently i.e. layout_mobile.php, modify mobile.php in main catalogue in line

require_once('config/layout.php');

to

require_once('config/[new_name_of_the_layout_file].php');

This is the easiest way but will require modification of mobile.php in each next version of template because mobile.php file from new version won't have your current change of code.

Last edited by chrismaliszewski (07-06-2014 18:45:05)

Offline

#3 07-06-2014 18:49:03

henningbr
Contributors
From: Norway
Registered: 29-04-2014
Posts: 30
Website

Re: Remove GroupTitle just for mobile-wiew?

That I will do.... why dont I think about that.... hmmmmm

Offline

#4 07-06-2014 20:09:31

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Remove GroupTitle just for mobile-wiew?

The easiest way would be:

.mobile .groupTitle{
display:none !important;
visibility:hidden !important;
height:0 !important;
overflow:hidden !important;
}

Offline

#5 07-06-2014 21:09:14

henningbr
Contributors
From: Norway
Registered: 29-04-2014
Posts: 30
Website

Re: Remove GroupTitle just for mobile-wiew?

hmmm... thnx thomas... that is of cource the easy way...

Offline

#6 07-06-2014 22:09:58

chrismaliszewski
Contributors
From: Torun, Poland
Registered: 06-05-2013
Posts: 246
Website

Re: Remove GroupTitle just for mobile-wiew?

Didn't know about mobile class wink. So Thomas as creator of this template is right about the easiest way smile.

And: I misread GroupTitle as GroupTile by "eating" second "t" - so at the beginning I thought that you don't want to have single tile group in mobile version which should be seen in desktop version. My fault.

Offline

Board footer

Powered by FluxBB