Mobile Menu Issue with Location Switcher
This topic contains 17 replies, has 5 voices, and was last updated by Paolo 8 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: location switcher, mobile
-
AuthorPosts
-
September 8, 2017 at 7:17 am #394739
Hello, I am missing on of my regions on my mobile menu. It’s visible on the desktop though. I’ve had a look at the settings and I’m not seeing what I missed.
Thank you.
September 8, 2017 at 7:17 am #394740This reply has been marked as private.September 8, 2017 at 3:47 pm #394788Hi Joy,
Could you please elaborate a little bit more? May I know what’s missing? Which region?
Thanks!
September 8, 2017 at 4:28 pm #394797This reply has been marked as private.September 8, 2017 at 8:59 pm #394818Please see: https://wpgeodirectory.com/support/topic/some-cities-not-show-on-mobile/
Thanks
September 8, 2017 at 9:11 pm #394822Thank you for the link.
On my mobile I actually have 2 options. There is a drop down that shows just 5 regions. Can this be expanded to show 6? If so, from there I will hide the “Search Region” option from mobile, and hide the drop down option from “Cities”. It’s a bit confusing to show a drop down and a search, it makes the directory seem limited to only the 5 choices shown. Showing only the search option would be ideal instead of the drop down for cities…but please tell me I can expand the 5 regions to 6. *fingers crossed*
Thank you.
September 9, 2017 at 11:59 am #394878Hi Joy,
Without modifying the code its not possible to get 6 results.
You can check this file.
/wordpress/wp-content/plugins/geodir_location_manager/geodir_location_hooks_actions.php
Line number: ~ 1820
But modifying the value would affect everywhere I guess.
I’ll assign this to stiofan. He can tell you if there is another way. He will reply you on monday.
Thanks
September 9, 2017 at 7:36 pm #394911Okay thank you. I would be very happy with the increase to 6 spaces instead of 5 for the region, both on desktop and mobile devices.
I will take a look at the file and report back if I’m able to get it to work.
September 11, 2017 at 8:01 am #395064If that does what you need then we can add a filter there, let us know.
Thanks,
Stiofan
September 11, 2017 at 8:24 am #395072Hi Stiofan,
I just tried to change the count from 5 to 6 but that doesn’t seem to affect anything. I’m not sure if I’m doing it right.
I would like the drop down options to show a maximum of 6 options instead of 5 site wide, both on the desktop and mobile.
September 11, 2017 at 8:26 am #395073This reply has been marked as private.September 11, 2017 at 8:45 am #395078HI Joy
I manully changed it in line 839 of geodir_location_template_tags.php
I still have to think of the best way to add a filter that will work in all situations, let me know how that works for now.Thanks,
Stiofan
September 11, 2017 at 7:49 pm #395197Thank you Stiofan. I really appreciate that!
I see the change in the mobile, so that is great. But for the desktop, the drop down list only shows 5 at a time. To see the remaining option(6th) the user needs to scroll and the “please wait” screen causes a slight delay. Can the desktop dropdown be expanded to show 6 options as well on default that will eliminate the need to scroll and the extra delay?
Thank you again.
September 13, 2017 at 2:34 pm #395538It seems that code works for both but you need to extend the height of the scroll area by 1 extra so it will show without the need to scroll.
Stiofan
September 13, 2017 at 7:43 pm #395597I’m sorry Stiofan. I’ve tried to find the css to implement the height of the scroll but I can’t figure it out.
This is the closest I could find to expand the box options, but it has no effect on the scroll: .geodir-chosen-container-single .chosen-drop
Help? Thank you.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket