Page 23 of 36 FirstFirst ... 13212223242533 ... LastLast
Results 221 to 230 of 357
  1. #221
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Now I've setup in configuration-->email only one email address into contact_us dropdown; from contact_us page, email sending successfully, but not from the box mega-menu. How can setup a default address for contact_us page?

  2. #222
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by 100asa View Post
    Now I've setup in configuration-->email only one email address into contact_us dropdown; from contact_us page, email sending successfully, but not from the box mega-menu. How can setup a default address for contact_us page?
    Out of the box, the mega menu contact us form does work. I would recommend restoring the original tpl_mega_menu.php file.

    Thanks,

    Anne

  3. #223
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Hi All,
    I love this menu, but it was important to me that my site menu 'work' on a mobile device. The current issue is that the headers are set to be links which return you to the main page when clicked. I just wanted the menu to show, but not refresh the page in any way.
    Just to let you know the mod I have done for mobile devices....

    I searched the web for a 'fake' link and the solution I used was this:

    where each header link is generated in tpl_mega_menu.php I replaced the php href link code with a null javascript call as follows:

    Existing link code:

    <li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->


    Modified link code:

    <li class="information-li"><a href="javascript:;" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a>
    <!-- bof information -->

    Repeat this change for every header link.


    I'm not a web developer and this may be a hack, but it was very important this menu worked on touch screen devices for me.
    I hope this help others with mobile devices and this menu.

    Logicalstep
    Last edited by logicalstep; 30 Nov 2013 at 03:41 PM.

  4. #224
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by logicalstep View Post
    Hi All,
    I love this menu, but it was important to me that my site menu 'work' on a mobile device. The current issue is that the headers are set to be links which return you to the main page when clicked. I just wanted the menu to show, but not refresh the page in any way.
    Just to let you know the mod I have done for mobile devices....

    I searched the web for a 'fake' link and the solution I used was this:

    where each header link is generated in tpl_mega_menu.php I replaced the php href link code with a null javascript call as follows:

    Existing link code:

    <li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->


    Modified link code:

    <li class="information-li"><a href="javascript:;" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a>
    <!-- bof information -->

    Repeat this change for every header link.


    I'm not a web developer and this may be a hack, but it was very important this menu worked on touch screen devices for me.
    I hope this help others with mobile devices and this menu.

    Logicalstep
    Thanks for posting your solution. I hope that it helps others ;)

    Thanks,

    Anne

  5. #225
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Pure CSS Mega Menu - Large Drop Down Menu

    Hi Anne,

    Firstly, thanks for the script and the support you've given on it. I've already learned a lot!

    But... I can't see how to get the UL Generator to do what I'm looking for.

    I've already followed another thread and managed to create all of my top levels as separate drop-downs by copying the code as shown in this guide: http://nigeltsblog.blogspot.co.uk/20...pdown-for.html All good so far.

    What I'm trying to do is to get all of the Sub 1 and Sub 2 to list under the top Level.

    I've photoshop'd a before and after to explain it clearer.

    Click image for larger version. 

Name:	megamenu-dream-menu.jpg 
Views:	93 
Size:	53.7 KB 
ID:	13490

    I'm sure this is something to do with the UL Generator and the TPL, but after a week of trying, I bow down to anyone with knowledge, as my trial and error is leading nowhere fast.

    Once again, many thanks

    Kristian

  6. #226
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Pure CSS Mega Menu - Large Drop Down Menu

    The stylesheet will be the primary means of making all subcats display under their categories. You would change the level of the "Work Jackets" etc. to not be hidden and display on hover of the level above, but always display: block;. Getting the columns without changing the coding would be more difficult. You would probably need to apply a multi-column code template to categories, as described many times in this thread.

  7. #227
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu - Large Drop Down Menu

    Superb! Thanks for the pointers. Now we're really getting there. I adjusted the CSS and got everything together and looking the way it should. Just need to solve one more thing.

    In the image, Level 5 (they are all sequential in sort order) is sitting beneath Level 4 due to a low number of sub cats, instead of starting a new column.

    Is there any way in CSS to force a new column for each of the The Levels?

    Click image for larger version. 

Name:	large-menu.jpg 
Views:	82 
Size:	32.3 KB 
ID:	13547

    Thanks to everyone who has contributed.

    Ky

  8. #228
    Join Date
    Dec 2013
    Location
    Jirkov, Czech Republic
    Posts
    1
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    nemáte někdo vyzkoušené mega menu na multishopu?
    po nainstalování vypadalo vše ok, ale karegorie se zobrazili ze všech shopů i ty uplně zakázané

    translated in translátoru

    you do not have anyone tried mega menu on multistore?,
    after you install it all ok, but the category will display all of the shops you completly disabled

  9. #229
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by Ien Cv View Post
    nemáte někdo vyzkoušené mega menu na multishopu?
    po nainstalování vypadalo vše ok, ale karegorie se zobrazili ze všech shopů i ty uplně zakázané

    translated in translátoru

    you do not have anyone tried mega menu on multistore?,
    after you install it all ok, but the category will display all of the shops you completly disabled
    You will need to edit some extra files.
    find in includes\classes\categories_ul_generator.php :
    PHP Code:
        function zen_categories_ul_generator($load_from_database true)
        {
            global 
    $languages_id$db;
            
    $this->data = array();
            
    $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd
                                            where c.categories_id = cd.categories_id
                                            and c.categories_status=1 " 
    .
                                            
    " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                                            
    " order by c.parent_id, c.sort_order, cd.categories_name";
            
    $categories $db->Execute($categories_query)); 
    and change to:
    PHP Code:
        function zen_categories_ul_generator($load_from_database true)
        {
            global 
    $languages_id$db;
            
    $this->data = array();
            
    $categories_query "select c.categories_id, cd.categories_name, c.parent_id
                                            from " 
    TABLE_CATEGORIES " c, " TABLE_CATEGORIES_DESCRIPTION " cd
                                            where c.categories_id = cd.categories_id
                                            and c.categories_status=1 " 
    .
                                            
    " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                                            
    " order by c.parent_id, c.sort_order, cd.categories_name";
            
    $categories $db->Execute(cat_filter($categories_query)); 
    that should do the trick

  10. #230
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    978
    Plugin Contributions
    6

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by jt3c View Post
    Well, I have it only on a local server at this point. Was just coming back to post that I spoke too soon and can't seem to center the menu items with margin or padding.
    Here's a screen shot if it'll help:
    Attachment 12237
    Not sure that that came through.

    Anyway, in the css the "float: left;" in the following line is causing all links to justify to the left side of the menu bar.

    .mega-menu li {float:left;text-align:center;position:relative;margin:6px 20px 0px 0;border:none;}

    I want to center them. Can't float:center, so is there a way to do it some other way? As mentioned above I've messed with margins and padding in a variety of places but can't get the items to center on the bar with the same relative margins/padding amongst themselves. This would basically end up with roughly 300px to the left and right of the whole group of links and whatever is the default in relation to each other.

    Any help is greatly appreciated as I'm obviously still a relative noob.
    JT
    If I understand you correctly, you want to centre the entire menu within the header. I share your grief. So many bells and whistles but no sweet solution for this.

    One albeit messy and approximate way to do it is by editing the menu wrapper in stylesheet_mega_menu.css.

    #mega-wrapper {
    width: 980px; /*change 980px to an em value (eg 50em) that is only a few ems wider than the greatest width of your menu at various zooms. Applying an background colour will let you see the result. Too small a value and the menu may wordwrap.*/
    margin:0 auto; /* auto must remain as it centralises menu.*/
    display:block;
    position: relative;
    z-index:9999;
    background:#ff0; /* Optional. For checking width. Can be retained if desired. */
    padding-left:2em; /* this is the trick. Adjust this value until the menu looks near enough centred at various zooms. */
    }

    There are other ways to do this, (eg changing display:block; to display:table; etc) but I have yet to get them to work as desired.

    Hope this helps.

 

 
Page 23 of 36 FirstFirst ... 13212223242533 ... LastLast

Similar Threads

  1. Help with Mega Menu css customization
    By swdynamic in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jul 2013, 01:21 AM
  2. v139h Mega Menu Mess
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Nov 2012, 07:58 PM
  3. v150 Mega Menu assistance
    By Fancyfrills in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 24 Aug 2012, 06:16 PM
  4. Horizontal Drop Menu sort order of mega-menu
    By familynow in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 19 Oct 2011, 04:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR