Page 1 of 2 12 LastLast
Results 1 to 10 of 2344

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Still Crazy View Post
    Have you tried adjusting the z-index's on the drop down menu CSS?
    I have tried, but not with any success. So far I've tried; 2000, 10000, 1100, 900. I'm not sure what else to try.

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jvoce View Post
    I have tried, but not with any success. So far I've tried; 2000, 10000, 1100, 900. I'm not sure what else to try.
    I've done some research into this, and this is an IE6 (and possibly earlier versions) bug to which there is no good workaround. In IE6, select menus DO NOT honor z-index. I thought I had this fixed in my Apple Zen Template, but I actually didn't.

    I would do this:
    Open up includes/templates/YOUR_TEMPLATE/templates/tpl_index_product_list.php

    I'd add a <div> around the filter section, like this:

    Code:
    <div id="filter">
    <?php
      $check_for_alpha = $listing_sql;
      $check_for_alpha = $db->Execute($check_for_alpha);
    
      if ($check_for_alpha->RecordCount() > 0 && PRODUCT_LIST_ALPHA_SORTER == 'true') {
      $form = zen_draw_form('filter', zen_href_link(FILENAME_DEFAULT), 'get') . '<label class="inputLabel">' . TEXT_SHOW . '</label>';
    ?>
    
    <?php
      echo $form;
      echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
      echo zen_hide_session_id();
    ?>
    <?php
      // draw cPath if known
      if (!$getoption_set) {
        echo zen_draw_hidden_field('cPath', $cPath);
      } else {
        // draw manufacturers_id
        echo zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]);
      }
    
      // draw typefilter
      if (isset($_GET['typefilter']) && $_GET['typefilter'] != '') echo zen_draw_hidden_field('typefilter', $_GET['typefilter']);
    
      // draw manufacturers_id if not already done earlier
      if ($get_option_variable != 'manufacturers_id' && isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
        echo zen_draw_hidden_field('manufacturers_id', $_GET['manufacturers_id']);
      }
    
      // draw sort
      echo zen_draw_hidden_field('sort', $_GET['sort']);
    
      // draw filter_id (ie: category/mfg depending on $options)
      if ($do_filter_list) {
        echo zen_draw_pull_down_menu('filter_id', $options, (isset($_GET['filter_id']) ? $_GET['filter_id'] : ''), 'onchange="this.form.submit()"');
      }
    
      // draw alpha sorter
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING_ALPHA_SORTER));
    ?>
    </form>
    <?php
      }
    ?>
    </div>
    Then I'd add this to your stylesheet:

    #filter {float:right}

    This way, the filter goes to the right side of the page, underneath the short menus (Contact Us, My Account, etc) so they won't slide underneath the select menus.

  3. #3

    Default Re: CSS Dropdown menu for your header- With Categories!

    Hello Body,
    Thanks for your MOD,
    It works fine.
    But i Just wonder why there are only six caterogies can display on the first horizontal line . I mean after that , the senven, eighth ......... will display on another horizontal line.
    Thanks for any help.

  4. #4
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by adam9110 View Post
    Hello Body,
    Thanks for your MOD,
    It works fine.
    But i Just wonder why there are only six caterogies can display on the first horizontal line . I mean after that , the senven, eighth ......... will display on another horizontal line.
    Thanks for any help.
    Who's Body? Just curious, LOL~

    If you're talking about this version:

    http://www.zen-cart.com/index.php?ma...roducts_id=523

    Its designed differently than the one I designed. If you look at www.zencart137.jadetrue.com, you can see my version. The categories drop down in a single vertical drop down menu, they are not spread out horizontally like the other mod. The link with my version is in my sig.

  5. #5
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Thanks for this menu jettrue! You rock such a time saver :)

    Just one last request (I requested the ezpages function)

    Would it be possible to be able to sort the ezpages I notice you can't sort them. (like top from bottom) It just sorts random no matter the sort order. Unless I'm doing something wrong.

    Thanks!

  6. #6
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by shackle View Post
    Thanks for this menu jettrue! You rock such a time saver :)

    Just one last request (I requested the ezpages function)

    Would it be possible to be able to sort the ezpages I notice you can't sort them. (like top from bottom) It just sorts random no matter the sort order. Unless I'm doing something wrong.

    Thanks!
    Ah ha! I made a boo boo. Either you can put in a sort order for the sidebox in the ezpages section and that will sort it, or you can open up includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php, and on line 23 change "order by sidebox_sort_order" to "order by header_sort_order".

  7. #7
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    Ah ha! I made a boo boo. Either you can put in a sort order for the sidebox in the ezpages section and that will sort it, or you can open up includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php, and on line 23 change "order by sidebox_sort_order" to "order by header_sort_order".
    Gasp. The simple fix I have been looking for two months plus. ;-) Back in March I decided the heck with auto adding ez-pages to the menu, but now I will.

    So I assume now the current consensus is:

    Code:
    where status_header = 1 and header_sort_order > 0 order by header_sort_order,
    (NOTE ABOVE: "and header_sort_order > 0", not the previously recommended "and sidebox_sort_order > 0")

    Woody

  8. #8
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    Then I'd add this to your stylesheet:

    #filter {float:right}

    This way, the filter goes to the right side of the page, underneath the short menus (Contact Us, My Account, etc) so they won't slide underneath the select menus.
    Does it matter where I place this? I've put it at the end of the stylesheet, but with no success.

  9. #9
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jvoce View Post
    Does it matter where I place this? I've put it at the end of the stylesheet, but with no success.
    It looks like you didn't do the first part of the instructions.... I don't see <div id="filter"> before or the </div> after the filter section.

  10. #10
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    It looks like you didn't do the first part of the instructions.... I don't see <div id="filter"> before or the </div> after the filter section.
    My mistake.
    I've now entered that information, and it didn't seem to change much.

    I wonder if it's possible to force the second filter to show below the first, which should get most of these filters out of way of the menus. It already happens on longer filters. Please take a look at the pic enclosed for clarification.
    Attached Images Attached Images  

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Categories dropdown menu/css
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2013, 01:04 PM
  2. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  3. How to use ezpages/categories as dropdown menu in the header?
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2011, 06:32 PM
  4. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 AM

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