Drop Down Menus -

Discussion in 'ClassiCraft WordPress Theme' started by scenikc, Mar 26, 2013.

Thread Status:
Not open for further replies.
  1. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    If anyone figures out how to edit the drop down menus so that they are more organized please let me know. This theme is useless to me without the menus being fixed. I'm starting to get frustrated, I feel like I wasted $100 on this theme.

    There are two menus that need to be fixed in this theme the category search menu (top center on home page) and the select category menu (visible when posting and ad).

    Currently the menus display the "Parent" category and the sub-categories in a random, unorganized fashion.


    It would be great if the categories would display something like this

    Jobs & Careers
    Admin & Clerical
    Accounting
    Advertising
    For Sale
    Cars
    Homes
    Ect



    Here are the menus I'm referring to....

    Listed KC errors.png


    And this menu here....

    Post an Ad   Listed KC.png
     
  2. adamomg

    adamomg New Member

    Joined:
    Feb 1, 2013
    Messages:
    10
    Likes Received:
    0
    I noticed the same frustrating problem!!! I had to delete all of my categories and then manually add each category in the order that I (hoped) the drop down would display. It worked for all but 3 of the 25 or so categories I put in like that, which is still frustrating because it isn't perfect, but at least it isn't as disorganized as it was before. I was hoping that someone else knew how to fix this too. It is also nearly impossible to scroll through the category drop-down menus on an I-Pad or I-Phone (Safari browser)
     
  3. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Unfortunately for me I have over 130 categories. I don't want to delete the categories and do them over again. I'd rather buy a new theme from a different developer, which will likely happen because this theme
    is completely useless with the way that the menus are. This was my first Ink Theme purchase and it will likely be my last. I really wish I wouldn't have purchased this theme now, lol.
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    We are working on this issue and try to add this feature at our next update of the theme.
     
  5. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Any word on when guys plan on updating this theme. If you don't plan on updating the menus in the theme please let me know so I can uninstall the theme and move in another direction. Thank you.
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    We try to release our new version as soon as possible and we will inform you after such update.
     
  7. 2611media

    2611media New Member

    Joined:
    Apr 11, 2013
    Messages:
    13
    Likes Received:
    3
    Hi,

    I think this will help you! It's a little fix i've used for my site:

    Just comment out this part
    PHP:
    foreach ($myterms as $term) {
                
    $root_url get_bloginfo('url');
                
    $term_taxonomy $term->taxonomy;
                
    $term_slug $term->slug;
                
    $term_name $term->name;
                
    $termid $term->term_taxonomy_id;
                
    $link $root_url '/' $term_taxonomy '/' $term_slug;
                
    $output .="<option value='" $termid "'>" $term_name "</option>";
                echo 
    $term_name $term->name;
            }
    And replace it with this:
    PHP:
    foreach ($myterms as $cate)
    {
    if(
    $cate->parent == 0)
    {
    $catename "";
    $catename $cate->name;
    $output .='<option disabled="disabled" value="'.$cate->term_id.'">'.$catename'</option>';
    foreach (
    $myterms as $subcate)
    {
    if(
    $subcate->parent == $cate->term_id)
    {
    $catename "";
    $catename $subcate->name;
    $output .='<option value="'.$subcate->term_id.'">'.'&nbsp;&nbsp;&nbsp;&nbsp;'.$catename.'</option>';
    }
    }
    }
    }
    Hope it will works for you!
     
    amaconline and calvinhon like this.
  8. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Thank you so much. I'm going to give this a try. Thank you again
     
  9. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Where does this .php code insert in to the taxonomy section or somewhere else?
     
  10. 2611media

    2611media New Member

    Joined:
    Apr 11, 2013
    Messages:
    13
    Likes Received:
    3
    stupid i didn't mention :) the code has to be replaced in the multiple_search.php file of your theme folder

    Enjoy
     
  11. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Thank you. It wasn't stupid your help is much appreciated. Thanks again!
     
  12. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    This worked great thank you so much! Is there a way to add a similar code to the drop down menu that users see when posting an add?
     

    Attached Files:

  13. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
  14. 2611media

    2611media New Member

    Joined:
    Apr 11, 2013
    Messages:
    13
    Likes Received:
    3
    working on that one! Will post it asap! ;)
     
  15. 2611media

    2611media New Member

    Joined:
    Apr 11, 2013
    Messages:
    13
    Likes Received:
    3
    Okay..... find the file: library/view/forms/step.php
    and replace this:
    PHP:
    <?php
                $taxonomies 
    = array(CUSTOM_CAT_TYPE);
                
    $args = array('orderby' => 'count''hide_empty' => false);
                echo 
    cc_get_terms_dropdown($taxonomies$args);
                
    ?>
    with this:
    PHP:
        <?php
            $taxonomies 
    = array(CUSTOM_CAT_TYPE);
            
    $args = array('orderby' => 'count''hide_empty' => 0);
         
            
    $myterms get_terms($taxonomies$args);
            
    $output "<select name='cc_category' title=\"Select Category\">";
            
    $output .= "<option value=''>Selecteer Rubriek</option>";
         
     
            foreach (
    $myterms as $cate)
                {                     
                if(
    $cate->parent == 0)
                    {
                    
    $catename "";
                    
    $catename $cate->name;
                    
    $output .='<option disabled="disabled" value="'.$cate->term_id.'">'.$catename'</option>';
                        foreach (
    $myterms as $subcate)
                            {
                            if(
    $subcate->parent == $cate->term_id)
                                {                                 
                                
    $catename "";
                                
    $catename $subcate->name;
                                
    $output .='<option value="'.$subcate->term_id.'">'.'&nbsp;&nbsp;&nbsp;&nbsp;'.$catename.'</option>';
                                }
                            }
                        }
                }
     
            
    $output .="</select>";
            echo 
    $output;
         
            
    ?>
    Enjoy!
     
    amaconline likes this.
  16. calvinhon

    calvinhon Member

    Joined:
    Apr 1, 2013
    Messages:
    105
    Likes Received:
    3
    Hi 2611 Media,

    I've tried your code, and it works perfectly!! Thanks...but I have a problem, how do you get rid of the top 'select category' and leave the new one as it is? See Picture. Thanks.
     

    Attached Files:

  17. scenikc

    scenikc New Member

    Joined:
    Jan 22, 2013
    Messages:
    12
    Likes Received:
    0
    Location:
    Kansas City, MO
    Thanks so much this was exactly what I was looking for. Sorry for my late response I have been very busy. But again thank you so much for your help.
     
  18. calvinhon

    calvinhon Member

    Joined:
    Apr 1, 2013
    Messages:
    105
    Likes Received:
    3
    Hi All,

    I've fixed it myself. Basically, I forgot to remark the original drop down menu. So I went back in and remarked it.
    So now it works perfectly. hehe. http://www.isniffy.com/ad-new/

    Thanks guys!
     
    amaconline likes this.
Thread Status:
Not open for further replies.

Share This Page