Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterGreat!
Yes, sort of a hacky way, but I think using a custom CSS to force visibility is the simplest way:
.asp_ss { display: block !important; opacity: 1 !important; visibility: visible !important; }Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOkay, let’s try something different.
On the index table settings, do NOT select the product variations, that may actually conflict with this. Try this code instead:
add_filter( 'asp_post_content_before_tokenize_clear', 'asp_tokenize_sku_variation', 10, 2 ); function asp_tokenize_sku_variation($content, $post) { if ( $post->post_type == 'product' ) { $_product = wc_get_product( $r->id ); $variations = $_product->get_children(); if ( !is_wp_error($variations) && is_array($variations) ) { foreach ( $variations as $variation ) { $content .= ' ' . $variation->get_description(); $content .= ' ' . $variation->get_sku(); } } } return $content; }If all goes well this should make some sort of a change.
Ernest Marcinko
KeymasterHi Leonidas,
I think so, but it may require a bit of custom code and special configuration.
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.
add_filter( 'asp_post_content_before_tokenize_clear', 'asp_tokenize_sku_variation', 10, 2 ); function asp_tokenize_sku_variation($content, $post) { if ( $post->post_type == 'product' && ($variations = $_product->get_children()) ) { foreach ( $variations as $variation ) { $content .= ' ' . $variation->get_description(); $content .= ' ' . $variation->get_sku(); } } return $content; }Then you will have to enable and use the index table engine. It will then index the variation description and SKU for each product as part of a the product content.
Ernest Marcinko
KeymasterYou cannot access this content.
November 20, 2023 at 9:17 am in reply to: How To Include Thumbnails In Search Input Dropdown? #46099Ernest Marcinko
KeymasterYou cannot access this content.
November 20, 2023 at 9:16 am in reply to: Custom Field Search Result Link Not Updating Site Content #46098Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOh, I’m sorry, I misinterpreted your query – that is not the button you want.
The actual settings button in the search input can’t be changed via templating, but there is still hope.
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.
add_filter( 'asp_shortcode_output', 'asp_change_search_button_class', 10, 2 ); function asp_change_search_button_class( $output, $id ) { return str_replace("<div class='prosettings", "<div class='sok-installningar-" . $id . " prosettings", $output); }Ernest Marcinko
KeymasterYou cannot access this content.
November 17, 2023 at 12:32 pm in reply to: Custom Field Search Result Link Not Updating Site Content #46084Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOn my end it works on any given page, home, subpages, regardless of the URL. I tried to trigger the error but no luck unfortunately.
If you want, you can add temporary FTP and back-end access, I can take a look.
Before that I would start by removing any custom code you may have, disabling all plugins temporarily, reverting the .htaccess file to default to see if anything changes. If it works then, then there is a conflict somewhere. If not, then it is still possible that the borwser just does not trigger a location change only based on the hashtag without query arguments.
Ernest Marcinko
KeymasterYou cannot access this content.
November 17, 2023 at 11:26 am in reply to: How To Include Thumbnails In Search Input Dropdown? #46081Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterI’m afraid I am not available for custom jobs, I’m sorry. Discussion about the thumbnail we can continue here.
-
AuthorPosts