NoMobile & NoTablet Suffix not Functioning

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jul 30, 2012 5:35 pm
Reply with quote
Report this post
I am attempting to rid the website of certain modules for the mobile version. In order to do this I have used the nomobile suffix (with the space in the beginning), but this causes the module to disappear on all versions: desktop, mobile and tablet.

I read about a similar situation in the Fashion template, (https://www.gavick.com/forums/fashion-r ... 17288.html) but the solution proposed does not apply here because I've checked for the CSS changes in mobile.css and tablet.css and they were already in place for the Bike Store template.

Does anyone know what may be causing this problem?

Looking forward to your help!

Thank you,

Carlos
User avatar
Senior Boarder

teitbite
Wed Aug 01, 2012 12:32 pm
Reply with quote
Report this post
Hi

Where You have found information about this suffixes ? I think our templates do not support that. Here is a list of available suffixes for modules http://demo.gavick.com/joomla16/jun2012 ... variations
User avatar
Moderator

GK User
Thu Aug 02, 2012 3:04 pm
Reply with quote
Report this post
teitbite wrote:Hi

Where You have found information about this suffixes ? I think our templates do not support that. Here is a list of available suffixes for modules http://demo.gavick.com/joomla16/jun2012 ... variations


I read about this under the New Suffixes for Mobile Devices section of the following Gavick Documentation for Responsive Layouts:

https://www.gavick.com/documentation/jo ... ve-layout/

They are not specified in the Fashion and Music responsive layouts either, as you have pointed out for the Bike Store template, but I figured this documentation was information for all responsive layouts.

If I can get the nomobile suffix to work, it may remove the need to alter the order of the sidebar and mainbody in mobile view (as I requested in the other thread you responded to).

Please advise.

Thank you!
User avatar
Senior Boarder

GK User
Thu Aug 02, 2012 4:48 pm
Reply with quote
Report this post
In addition to my previous response:

I'm hoping to have the onlymobile and onlytablet suffixes work as well.

Thank you!
User avatar
Senior Boarder

teitbite
Fri Aug 03, 2012 11:56 am
Reply with quote
Report this post
Hi

I've just check and this suffixes are included in style files:

Code: Select all
/* limitation suffixes */
.box.notablet {
   display: block!important;
}
.box.nomobile {
   display: none!important;
}
.box.onlytablet {
   display: none!important;
}
.box.onlymobile {
   display: block!important;
}


Please show me You site.
User avatar
Moderator

GK User
Fri Aug 03, 2012 6:41 pm
Reply with quote
Report this post
teitbite wrote:Hi

I've just check and this suffixes are included in style files:

Code: Select all
/* limitation suffixes */
.box.notablet {
   display: block!important;
}
.box.nomobile {
   display: none!important;
}
.box.onlytablet {
   display: none!important;
}
.box.onlymobile {
   display: block!important;
}


Please show me You site.


Site URL: http://shop.unisolinternational.com

Thank you
User avatar
Senior Boarder

teitbite
Wed Aug 08, 2012 9:16 am
Reply with quote
Report this post
Hi

It's our bug. Please go to /css/template.css and remove this code from it:

Code: Select all
.notablet {
   display: none;
}
.nomobile {
   display: none;
}


I'm reporting this to programmers for fix.
User avatar
Moderator

GK User
Fri Aug 31, 2012 8:58 pm
Reply with quote
Report this post
teitbite wrote:Hi

It's our bug. Please go to /css/template.css and remove this code from it:

Code: Select all
.notablet {
   display: none;
}
.nomobile {
   display: none;
}


I'm reporting this to programmers for fix.


Hi, has there been any update on this bug?

The only way I can make this template look good in mobile is by using those suffixes.

Looking forward to your help!

Thanks,

Carlos
User avatar
Senior Boarder

teitbite
Mon Sep 03, 2012 12:15 pm
Reply with quote
Report this post
Hi

I've reported this problem to programmers already and I do not see it in task list anymore, so probably this got fixed. Try update Your template.

But did my code not helped ? This should be the solution they added to newest template version.
User avatar
Moderator

GK User
Thu Sep 13, 2012 9:36 pm
Reply with quote
Report this post
That seems to have done the trick!

Sorry for the late response, but once again, thanks for your help!

Regards,

Carlos
User avatar
Senior Boarder

GK User
Mon Oct 22, 2012 11:41 am
Reply with quote
Report this post
Hi guys, I have the latest 3.5.1. version of this template but I have some problems with ' nomobile' and ' onlymobile' suffixes...

in the mobile layout I want to hide the module selected with pink box (see the image)
This module is placed in 'search' position and contains an image.


the same thing happen when I use " nomobile" suffix for other modules in other modules position like 'header'.

If I use ' nomobile' suffix in other modules position like 'mainbody' or 'sidebar' it works.

Why? Please help
User avatar
Expert Boarder

GK User
Mon Oct 22, 2012 3:03 pm
Reply with quote
Report this post
ok, solved adding this:

#gkSearch { display: none; }

in mobile.css
User avatar
Expert Boarder

teitbite
Tue Oct 23, 2012 1:23 am
Reply with quote
Report this post
Hi

Yes. This is the only solution in this case. Search module has a raw style which means that class suffixes are not being attached to it.
User avatar
Moderator

GK User
Tue Oct 23, 2012 11:30 am
Reply with quote
Report this post
thank you teitbite,

Here another issue:

it seems that these suffixes doesn't work with Custom Html modules in every module position.
is there a way to fix it?
User avatar
Expert Boarder

teitbite
Wed Oct 24, 2012 12:02 pm
Reply with quote
Report this post
Hi

That's odd. There is nothing special about mod_custom. This should work. Are You sure the suffix is set properly ? The most common mistake it that there is no space before suffix added. Please check this and if it's ok, than send me an access to Your joomla panel.
User avatar
Moderator

GK User
Mon Nov 05, 2012 6:14 pm
Reply with quote
Report this post
Hi,
I have a similar question related to this string.
I would like to remove the frontpage image show from the mobile version (i am using Image Show GK4ver. 1.32). The nomobile suffix does not remove it. I cannot seem to find the #gk.. function in mobile.css to cancel this out. Could you provide me with the correct name of this function?
Best regards,
User avatar
Junior Boarder

teitbite
Mon Nov 05, 2012 7:18 pm
Reply with quote
Report this post
Hi

Please show me Your site.
User avatar
Moderator

teitbite
Tue Nov 06, 2012 12:48 am
Reply with quote
Report this post
Hi

Ok. I think I know why it's not disappearing. "header" module position is a raw one, which means that it doesn't display header and also does not support module class suffixes. Please simply edit file /layout/default.php and change this line:

Code: Select all
          <jdoc:include type="modules" name="header" style="<?php echo $this->module_styles['header']; ?>" />


to

Code: Select all
          <jdoc:include type="modules" name="header" style="gk_style" />


You can also set the style in template settings, but I find it faster to edit the file directly.
User avatar
Moderator

GK User
Tue Nov 06, 2012 9:47 pm
Reply with quote
Report this post
Hello Teitbite, removal of the module definition worked fine. Thanks again for your prompt reply and guidance, regards
User avatar
Junior Boarder

teitbite
Sat Dec 08, 2012 4:51 pm
Reply with quote
Report this post
Hi

I would really like to help You with this speed up but I'm overloaded with work this month and cannot squeeze even 1h job right now :(

1. You cannot force Image Show to load faster because it will display a partially loaded images. Of course You can try and see how it looks like by using this css:

Code: Select all
.gkIsWrapper-gk_yourshop .gkIsPreloader { display: none; }


2. This is a known joomla cache issue. You should try using a different cache solution.

You should try JCH Optimization plugin, probably configuring it will not be easy, but it should reduce a number of files loading for Your site which can be good for performance.
User avatar
Moderator

GK User
Wed Dec 12, 2012 3:36 am
Reply with quote
Report this post
Hi Teitbite,
Thanks for your response, I've given some feetback to your comments in another post for the yourShop template.
User avatar
Junior Boarder

teitbite
Thu Dec 13, 2012 3:12 am
Reply with quote
Report this post
Hi

Can You please give me a link to this thread. I cannot find it.
User avatar
Moderator

GK User
Thu Dec 13, 2012 9:41 am
Reply with quote
Report this post
The thread is below:
https://www.gavick.com/forums/yourshop/ ... 19539.html

Thanks again teitbite.
User avatar
Junior Boarder

teitbite
Thu Dec 13, 2012 1:58 pm
Reply with quote
Report this post
Hi

Ok. I'm following the link :)
User avatar
Moderator

GK User
Mon Jan 28, 2013 1:06 pm
Reply with quote
Report this post
Hi,
I don't know why, but I managed to make nomobile work correctly but notablet is still ignored.
For example the module on the top left of my site has nomobile and notablet suffixes but only nomobile works.

The website is http://www.allevamentosiberiani.it

Gianluca
User avatar
Fresh Boarder

teitbite
Tue Jan 29, 2013 11:12 am
Reply with quote
Report this post
Hi

When You are using both this suffixes at the same time than they are in conflict with each other. Basicaly when You are on tablet layout than suffix "notablet" hides it, but "nomobile" is making it appear again.

Unfortunately noone expected to hide from default only, so please create a new suffix: "onlydefault", than add this classes to mobile.css and tablet.css file:

Code: Select all
.box.onlydefault {
display:none!important;
}
User avatar
Moderator

GK User
Tue Jan 29, 2013 11:44 am
Reply with quote
Report this post
Thank you, it worked like a charm!

teitbite wrote:Hi

When You are using both this suffixes at the same time than they are in conflict with each other. Basicaly when You are on tablet layout than suffix "notablet" hides it, but "nomobile" is making it appear again.

Unfortunately noone expected to hide from default only, so please create a new suffix: "onlydefault", than add this classes to mobile.css and tablet.css file:

Code: Select all
.box.onlydefault {
display:none!important;
}
User avatar
Fresh Boarder

teitbite
Tue Jan 29, 2013 11:58 am
Reply with quote
Report this post
Hi

Great. Glad I could help :)
User avatar
Moderator


cron