Skip Navigation

[Resolved] Dropdown list not function in responsive view (handphone view)

This thread is resolved. Here is a description of the problem and solution.

Problem:

The select field in custom search form does not work with mobile phone.

Solution:

This is a conflict with custom theme + Bootstrap, you can simply change a theme

Relevant Documentation:

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 2 voices.

Last updated by tohL 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1142954

hidden link

The above page is not functioning for the dropdown list when using handphone.

But it's work on the desktop.

Please help with this issue.

Thank you.

#1142956

This is the code i use in Custom Code.

add_filter( 'wpv_filter_query', 'drop_empty_search_query', 10, 3 );
function drop_empty_search_query( $query_args, $view_settings, $view_id ) {
$ids = array(5531);
if (in_array($view_id, $ids)){
if (
// taxonomy filter needs to check for not '0' as well as not empty
( isset($_GET['wpv-wpcf-state']) && $_GET['wpv-wpcf-state'] != '' && $_GET['wpv-wpcf-state'] != '0' )
||
// text search only needs to check for not empty
( isset($_GET['wpv_post_search']) && $_GET['wpv_post_search'] != '' )
) {
} else {
$query_args['post__in'] = array(0);

}
}
return $query_args;
}

#1142959
handphone.jpg
desktop.JPG

Hi,

I have tested with my Chrome browser, see screenshot desktop.JPG , is it expected result?

In my android phone, it seems to be work fine, see screenshot: handphone.JPG

I assume you are using custom JS/CSS codes to style the dropdown list, if it is, please try to remove them, then test again.

If the problem is fixed, then you will need to debug those custom JS/CSS codes manually.

And your custom PHP codes is fine, it takes effect only on search result, it won't take effect on the dropdown list

#1143104

My phone still has a problem with this.

Do you have other solution?

Thank you.

#1143526

This should be a conflict between your custom JS/CSS codes and your phone, here are my suggestions:
1) Remove those custom JS/CSS codes, and test
2) Try with another phone, and test.
3) For those custom PHP codes:
https://toolset.com/forums/topic/dropdown-list-not-function-in-responsive-view-handphone-view/#post-1142956
You can remove it and test again.

#1143557

The problem still here. I have tried with others phone.

It has this problem too.

It means it has a problem on this.

Please help to fix it.

#1143563
PENANG.jpg

To Avoid more misunderstand, please elaborate the question with more details:
The above page is not functioning for the dropdown list when using handphone.

How can I see it is not "functioning"

I have tried these in the URL you mentioned above:
1) Open the URL with my Android phone
hidden link

2) dropdown list "State" choose option "PENANG", click "submit" button, I can see same results as desktop, see screeenshot PENANG.JPG

#1143577

I tried to touch the dropdown list and it not show up the list. I have tried few handphone using chrome and internet browser. The results still not show up the list. It just happen in handphone and if use desktop no problem.
If i paste the link to Wechat and open the link it is no problem.

#1143579

Thanks for the clarifications, you are right, it happens in my phone browser, and it should be a custom CSS/JS codes problem, I suggest try these:
1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, remove all custom JS/CSS codes in your view, and test again

2) If the problem is fixed, then activate plugins/theme/custom JS/CSS codes one by one, try to locate the problem plugin/theme/codes.

If you need assistance to locate it, please provide your website credentials.

#1143673
mobile-select.jpg

Thanks for the details, I can login your website
It should be a problem of you theme, I have tried to switch theme 2017, then it works fine, see screenshot mobile-select.JPG

#1145555

My issue is resolved now. Thank you!