Disable Top fixed wrapper at lower resolutions

Disable Top fixed wrapper at lower resolutions was created by Boradan

Posted 6 years 9 months ago #43373
Is there any way to disable the top fixed wrapper for mobile devices?

I can work around this by duplicating the wrapper and having the fixed one hidden on mobiles, but that means having to have a 2nd logo, description and menu.

An option to disable this at certain resolutions would be great ;)
by Boradan

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Disable Top fixed wrapper at lower resolutions

Posted 6 years 9 months ago #43374
Hi
you could try to override the position with CSS as the script will add a css class.I have not tested yet, but using the inspector you should see what I mean :)
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Boradan on topic Disable Top fixed wrapper at lower resolutions

Posted 6 years 9 months ago #43375
I had a look in the topfixedwrapper.js file and noticed you were already doing a screen resolution check, but that it was set to 0.

Changing this to 1px above the mobile phone resolution in the responsive design made the wrapper non-fixed for mobiles.

Will this get over-written each time I modify the template now?

If so, can I modify the js file in the administrator/components/com_templateck/widgets/topfixedwrapper/topfixedwrapper.js ?
by Boradan

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Disable Top fixed wrapper at lower resolutions

Posted 6 years 9 months ago #43379
hey that's right :) I have forgotten this , I have to implement this as an option in the next version

you can use it like this but you must make the modification in
administrator/components/com_templateck/widgets/topfixedwrapper
then it will be kept when you copy the changes to update the template

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Boradan on topic Disable Top fixed wrapper at lower resolutions

Posted 6 years 9 months ago #43380
already done.
I have also modified the bootstrap.css file in the same folder to use the newer btn-large etc bootstrap buttons
newtemplates.computersystems.ie/
Last Edit:6 years 9 months ago by Boradan
Last edit: 6 years 9 months ago by Boradan.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Disable Top fixed wrapper at lower resolutions

Posted 6 years 9 months ago #43382
for the CSS I would better suggest to use the custom css
the bootstrap.css file from the component will be erased with a future update

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.755 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1033 guests and no members online