Whole menu reference (incude)

More
11 years 3 months ago #28986 by pharsan@freemail.hu
Hi,

I have some questions to our project. I'm using the Maximenu CK, the Maximenu mobile and the Maximenu CK Params.

I have two menus on pc and we would like to make it one on the mobile. I found a post in the JoomlaCK forum that we can't merge two menu-modules
( forum.joomlack.fr/index.php/4-maximenu-c...ngle-menu-responsive ), but can I include one menu-module in the other?

or

I found that I can make an alias in the menu item type/system links witch creates what I would like, but for one menupoint. Is there a way to do an alias for
a whole menu?

Best regards
Peter

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

More
11 years 3 months ago #28987 by ced1870
Hi
in my mind the best solution for now is to use 2 modules, which hidden on all devices/resolutions that would be used for the mobile menu (which will be shown)
and another module to show the normal desktop menu, hidden on phones
CEd

Joomlack Webmaster and Developer

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

More
11 years 3 months ago - 11 years 3 months ago #29022 by pharsan@freemail.hu
Hi

Thank you, for the help. After your mesage, I made 3 menu-moduls: 2 for the desktop and 1 for the mobile. Now I use the Maximenu CK template.
Now when I wanted to hide the menus by writting <space>+hidden-phone for 2 and <space>+visible-phone for the other in the Module Class Suffix. But it didn't worked.

I looked around and I fond that in the maximenu.php at the Container Style Section the next code: display:blocked !inportant. Becouse of the !important my codes doesn't work, but when I remove it, the menus are hidden.

My qestion is, by removing the !important, how much complications could be in the future. Or is there a way to solve the problem without overwriting the files of the template.

Best regards
Peter
Last edit: 11 years 3 months ago by pharsan@freemail.hu. Reason: Wrong spelling :)

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

More
11 years 3 months ago #29027 by ced1870
please give me the whole line of code where you have found the !important so that I can check this

Joomlack Webmaster and Developer

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

More
11 years 3 months ago #29031 by pharsan@freemail.hu
Sorry, I wrote down wrong the file's name :(
This is the correct one: maximenuck.php and this is where I found it:
...\joomla\modules\mod_maximenuck\themes\css3megamenu\css\maximenuck.php

Here is part of the code:

Code:
<?php header('content-type: text/css'); $id = htmlspecialchars($_GET['monid'], ENT_QUOTES); ?> /*----------------------------------------------------------------------------------------------------------- This theme is largely inspired by the Mega menu tutorial on net.tutsplus.com : http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/ Ce theme est largement inspire du tutoriel de Mega menu sur net.tutsplus.com http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/ -------------------------------------------------------------------------------------------------------------*/ .clr {clear:both;visibility: hidden;} /*--------------------------------------------- --- menu container --- ----------------------------------------------*/ /* menu */ div#<?php echo $id; ?> { font-size:14px; line-height:21px; text-align:left; zoom:1; } /* container style */ div#<?php echo $id; ?> ul.maximenuck { clear:both; position : relative; z-index:999; overflow: visible !important; display: block !important; float: none !important; visibility: visible !important; opacity: 1 !important; list-style:none; margin:0 auto; height: auto; padding:0px 20px 0px 20px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; filter: none; background: #014464; background: -moz-linear-gradient(top, #0272a7 0%, #013953 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0272a7), color-stop(100%,#013953)); background: -webkit-linear-gradient(top, #0272a7 0%,#013953 100%); background: -o-linear-gradient(top, #0272a7 0%,#013953 100%); background: -ms-linear-gradient(top, #0272a7 0%,#013953 100%); background: linear-gradient(top, #0272a7 0%,#013953 100%); border: 1px solid #002232; -moz-box-shadow:inset 0px 0px 1px #edf9ff; -webkit-box-shadow:inset 0px 0px 1px #edf9ff; box-shadow:inset 0px 0px 1px #edf9ff; text-align: left; zoom: 1; } ...(this is not the full content of the file)...

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

More
11 years 3 months ago #29034 by ced1870
ok, this is the theme
you can duplicate the theme folder to create your own, and then modify it like you want to avoid problems during next updates

Joomlack Webmaster and Developer

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

Time to create page: 0.202 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1731 guests and 2 members online