Search Widget – Firefox
This topic contains 12 replies, has 3 voices, and was last updated by Stiofan O’Connor 9 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: firefox, Search Widget, selector
-
AuthorPosts
-
August 4, 2015 at 3:00 pm #48065
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.
August 4, 2015 at 3:03 pm #48066This reply has been marked as private.August 4, 2015 at 6:37 pm #48121This reply has been marked as private.August 5, 2015 at 6:51 pm #48320There 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
August 6, 2015 at 11:01 am #48383Hi 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.
August 6, 2015 at 11:23 am #48384Hi 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 aroundThanks,
Stiofan
August 6, 2015 at 12:21 pm #48386Thanks 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.August 6, 2015 at 12:41 pm #48387We 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
August 6, 2015 at 12:44 pm #48389also notices the regions bit is also playing havoc with the regions autocompleter, might just be best not to have this in a dropdown…
August 6, 2015 at 12:57 pm #48390Hi 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.
August 6, 2015 at 1:00 pm #48391You are welcome 🙂
You know what better than a box of chocolates? A good review 😉
https://wordpress.org/support/view/plugin-reviews/geodirectoryThanks,
Stiofan
August 6, 2015 at 1:25 pm #48392Of course!
I’ve just left my review on WP site. You will get more and more happy customers!August 6, 2015 at 1:28 pm #48393Thanks you very much! 🙂 🙂 🙂 Much better than chocolate! 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket