Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterIt should work like that, if I try it on my local server with this:
/#search/q={phrase}It redirects me perfectly. You may have a script there or a .htaccess mod_rewrite rule that also affects that and converts the URL after redirection. It should work with anything you put in there. Some browsers do treat the anchors differently and prevent redirection when they see one, so that’s why I recommended the “?” or “&” to basically trigger that.
Ernest Marcinko
KeymasterOkay, how about an & mark instead of the “?”:
/#search/&q={phrase}Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
November 16, 2023 at 1:01 pm in reply to: How To Include Thumbnails In Search Input Dropdown? #46067Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Yes – it will involve a bit of custom coding, but via filter layouts templating you can modify the button layout file and add your custom CSS class.
Ernest Marcinko
KeymasterYou cannot access this content.
November 16, 2023 at 11:26 am in reply to: Is there any way to let client order search results? #46057Ernest Marcinko
KeymasterYou cannot access this content.
November 16, 2023 at 11:25 am in reply to: Custom Field Search Result Link Not Updating Site Content #46056Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterAll right – I tried to replicate the issue a few times on different devices yesterday but I couldn’t, so I don’t know where it originated from unfortunately.
Well, for the results page you could try a custom code for that:
add_filter("asp_query_args", "asp_query_args_remove_variation", 10, 2); function asp_query_args_remove_variation($args, $search_id) { if ( !$args['_ajax_search'] ) { $args['post_type'] = array_diff($args['post_type'], array('product_variation')); } return $args; }Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Ernest Marcinko
KeymasterHi,
The product thumbnail should be automatically parsed by default, make sure the images are enabled here.
To include different fields, please use the advanced title and content fields feature.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
I tried and reloaded a dozen times, but it seems to work all right on my end every single time. Can you please try to clear the phone cache as well as the site cache. The fact that it can’t be replicated points to a cache issue.
Ernest Marcinko
KeymasterI think there might be missing a query separator, the “?” sign. When I do it like this on my local server:
/#search/?q={phrase}Then it seems to work correctly. This should do the trick.
-
AuthorPosts