Osclass forums
Support forums => Themes => Modern => Topic started by: marius-ciclistu on December 27, 2017, 03:14:40 pm
-
Hi. I made some mods for modern to work ok on mobile but now I see that I can't access things like email templates from mobile because the main menu icon from the vertical bar has a link.
Anyway my suggestion would be to release a css/js patch for this issue.
In my case, I'll go ahead and modify the theme and remove that link from there when screen rez in less than 460 px.
-
/oc-includes/osclass/helpers/hAdminMenu.php
line 158
$sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;
'" href="'.$value[1].
must be removed only when the menu has submenu. How to test that?
if($aSubmenu)
or if($sSubmenu)
?
-
Solution
/oc-includes/osclass/helpers/hAdminMenu.php
if($sSubmenu=='') $sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL; else $sMenu .= '<h3><a id="'.$value[2].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;
instead of
$sMenu .= '<h3><a id="'.$value[2].'" href="'.$value[1].'">'.$icon.'</div>'.$value[0].'</a></h3>'.PHP_EOL;
-
Hello, I'm using the Modern theme also and I wanted to make it responsive. Can you please share what modifications you made in order to make this responsive? Thanks!
-
https://forums.osclass.org/modern/admin-for-mobile-use/msg159072/#msg159072
I moved the logout button in left side and other small changes. The overall look is non-mobile but usable.