Responsive CSS & hiding modules

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
Sat Nov 09, 2013 4:48 pm
Reply with quote
Report this post
I have used the notablet nomobile class suffix in various modules and its working except for two situations...

I don't know if that's because of the module position or the modules themselves.

The positions are "search" & "header"
The module types are "custom_html (the suffix works fine in other positions)" & "frontpage slide show (joomlaworks)", respectively.

If you want the url I'll have to PM you the url for security & SEO reasons. Thanks!
User avatar
Senior Boarder

GK User
Sun Nov 10, 2013 12:24 pm
Reply with quote
Report this post
Hello,

Most probably it is connected with fact that these module positions uses "none" chrome module style, what cause that the suffix isn't added to the module.
User avatar
Administrator

GK User
Sun Nov 10, 2013 1:30 pm
Reply with quote
Report this post
Is there a way to overcome that problem?

Thanks for the reply!
User avatar
Senior Boarder

GK User
Sun Nov 10, 2013 1:41 pm
Reply with quote
Report this post
In my opinion you should hide these elements directly in the CSS: tablet.css or mobile.css using:

Code: Select all
#elementID {
    display: none;
}
User avatar
Administrator

GK User
Sun Nov 10, 2013 3:58 pm
Reply with quote
Report this post
Hmmm... Ok, I'll try that & let you know. Seems legit... Thanks! :)
User avatar
Senior Boarder

GK User
Mon Nov 11, 2013 9:10 pm
Reply with quote
Report this post
Ok! Works like a charm, thanks!
User avatar
Senior Boarder

GK User
Sat Nov 16, 2013 1:02 am
Reply with quote
Report this post
Please what is the #elementID.

Please help

Thanks
User avatar
Senior Boarder

GK User
Sat Nov 16, 2013 11:48 am
Reply with quote
Report this post
#elementID is an example - you should replace elementID with ID of the element to hide. In example if you want to hide the element with ID gkHeader you have to use "#gkHeader"
User avatar
Administrator

GK User
Sat Nov 16, 2013 6:17 pm
Reply with quote
Report this post
Thanks for the response but I think my issue is even bigger than I thought. I just noticed that the template is not really responsive. Mobile devices do not seem to switch to the mobile version. In other words, on mobile devices, it still uses template.css settings. It doesnt seem to recognise or load the mobile.css file on mobile devices.

If I turn on css overide on the template, both desktop and mobile devices show the mobile version of the site. There is something wrong. Please help

Edwin
User avatar
Senior Boarder

GK User
Sun Nov 17, 2013 1:07 pm
Reply with quote
Report this post
Please check in the Layout tab if you have set proper widths for the specific mobile/tablet breakpoints and please check in the RWD layout is enabled.
User avatar
Administrator

GK User
Sun Nov 17, 2013 10:41 pm
Reply with quote
Report this post
dziudek wrote:Please check in the Layout tab if you have set proper widths for the specific mobile/tablet breakpoints and please check in the RWD layout is enabled.


1. There is no place to specify widths for the mobile/tablet in the layout tab

2. How/Where do I check in the RWD layout is enabled?
User avatar
Senior Boarder

GK User
Mon Nov 18, 2013 9:47 am
Reply with quote
Report this post
Are you sure? Please look at the attachment.
User avatar
Administrator

GK User
Mon Nov 18, 2013 6:49 pm
Reply with quote
Report this post
dziudek wrote:Are you sure? Please look at the attachment.



Ok, my fault. I am in the wrong template. I use a world news II template for Joomla 3
User avatar
Senior Boarder

GK User
Mon Nov 18, 2013 8:12 pm
Reply with quote
Report this post
In this case the mentioned options are not available, because TWN II is a non-responsive template.

If you need to hide something on specific width, then you have to wrote your own media queries.
User avatar
Administrator

GK User
Mon Nov 18, 2013 9:22 pm
Reply with quote
Report this post
dziudek wrote:In this case the mentioned options are not available, because TWN II is a non-responsive template.

If you need to hide something on specific width, then you have to wrote your own media queries.


Please are there any guides or tutorials on how to do that? I didnt know TWN II is a non responsive template. I wouldnt have used it. That puts me in a serious dilemma now! And my site is live already with it. I cant change it now because it would really make me look silly. I thought all your Joomla 3.0 templates were responsive templates. This is really not cool

I would appreciate any leads or tips.

Regards
User avatar
Senior Boarder

GK User
Tue Nov 19, 2013 8:44 am
Reply with quote
Report this post
It will be a big problem, because the template structure is not prepared for the responsive layout. You can try to work with media-queries: https://developer.mozilla.org/en-US/doc ... ia_queries (put it in the override.css file - please remember to enable it in the template settings).
User avatar
Administrator


cron