Search Widget – Firefox

This topic contains 12 replies, has 3 voices, and was last updated by  Stiofan O’Connor 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #48065

    Eri
    Buyer
    Post count: 55

    Hello,
    I asked this question previously on wordpress.org support forum, my apologies of duplication.

    I’m using search widget for main navigation as dropdown menu.
    (I’ll send you URL and login details separately)
    Search widget is working great on Safari and Chrome, however on Firefox, dwopdown menu disappear before I choose a selector.
    Is there any way to avoid using selector, or any idea how I can solve this?

    Search Widget come with Core plugin, and the selector comes from Custom Post Type add-on, so I wasn’t sure I should write this either Core Plugin forum or add-on forum. Please let me know if I should ask this on Add-on forum.

    Thank you very much for your help in advance.

    #48066

    Eri
    Buyer
    Post count: 55
    This reply has been marked as private.
    #48121

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #48320

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There seems to be a JS error on the page caused by this JS which i can’t find:

    
    
    jQuery(document).ready(function($){
     	    $( window ).load(function() {
     	        $(document).on('click', '.navbar .dropdown-menu', function(e) {e.stopPropagation();})
     	    });

    Can you please fix this first.

    Thanks,

    Stiofan

    #48383

    Eri
    Buyer
    Post count: 55

    Hi Stiofan,
    Thank you so much for looking into my question.

    I fixed(?) the script to;

    
    
    <script language="javascript">
    jQuery(document).ready(function($){
     	    $( window ).load(function() {
     	        $(document).on('click', '.navbar .dropdown-menu', function(e) {e.stopPropagation();})
     	    });
     	    });
    </script>

    then I don’t see syntax error anymore, I hope this is OK?

    I also noticed the compass is keep moving around. I don’t know why. I’d appreciate if you could let me know the next step to fix this.

    Thank you so much for your help in advance.

    #48384

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Eri,

    This just seems to be a bug with the dropdown and having a select in it in FF, it is not GD specific and i have wasted far too much time trying to solve it, i would suggest either 3 things
    #1 move search out of the dropdown
    #2 use a different JS script as the dropdown
    #3 hire a developer to find a work around

    Thanks,

    Stiofan

    #48386

    Eri
    Buyer
    Post count: 55

    Thanks for your reply Stiofan,
    and I’m really sorry for wasting your time.

    I’ve posted to hire a developer on the GD job board a few days ago, however I haven’t got any contact, just in case I have to fix this with myself.

    I’m sorry for asking this again, is it possible if I don’t use a selector there? I only have 2 CPT, so there is plenty space to put radio buttons instead of selector. I think this section(?) on listing-filter-form.php;

    
    
    <select name="stype" class="search_by_post">
                            <?php foreach ($post_types as $post_type => $info):
                                global $wpdb;
                                $has_posts = '';
                                $has_posts = $wpdb->get_row($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_type = %s LIMIT 1", $post_type));
                                if (!$has_posts) {
                                    continue;
                                }
                                ?>
    
                                <option opt_label="<?php echo get_post_type_archive_link($post_type);?>"
                                        value="<?php echo $post_type;?>" <?php if (isset($_REQUEST['stype'])) {
                                    if ($post_type == $_REQUEST['stype']) {
                                        echo 'selected="selected"';
                                    }
                                } elseif ($curr_post_type == $post_type) {
                                    echo 'selected="selected"';
                                }?>><?php _e(ucfirst($info->labels->name), GEODIRECTORY_TEXTDOMAIN);?></option>
    
                            <?php endforeach; ?>
                        </select>

    If you think it’s possible, I’d really appreciate if you could let me know how to change it.
    I’m sorry for asking many times.

    #48387

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We do not do customisation which is what i would class this as, however i found a script to convert a select to a radio and then i hide the customise my search button in the dropdown (as it needs the select to function properly, can be filtered more on the search page)

    Please check it now.

    Thanks,

    Stiofan

    #48389

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    also notices the regions bit is also playing havoc with the regions autocompleter, might just be best not to have this in a dropdown…

    #48390

    Eri
    Buyer
    Post count: 55

    Hi Stiofan,

    Ohhhh! That looks perfect!
    Thank you so much for your help with this! Yes I see now Customise My Search only appear on the search box on the content. That’s amazing.

    And I turned off Auto Completer. Can’t thank you enough for this. If I knew your address, I would send you a box of chocolate straightway. That much I want thank you.

    And my apologies to taking lots your time for my website, really appreciated with your help for this.

    #48391

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome 🙂

    You know what better than a box of chocolates? A good review 😉
    https://wordpress.org/support/view/plugin-reviews/geodirectory

    Thanks,

    Stiofan

    #48392

    Eri
    Buyer
    Post count: 55

    Of course!
    I’ve just left my review on WP site. You will get more and more happy customers!

    #48393

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks you very much! 🙂 🙂 🙂 Much better than chocolate! 🙂

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket