Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
May 29, 2025 at 1:03 pm in reply to: The search bar does not work in translations with GTranslate #54198Ernest Marcinko
KeymasterGtranslate should automatically translate that, as it’s a reverse proxy. You may have to ask their support about that, maybe there is an option you need to enable or something similar.
I have spoken with them some time ago, and all I know is that it automatically translates everything. We were trying to figure out if there was a way to search the translated content, but apparently that’s not possible to access in any way by any plugin.
May 29, 2025 at 12:22 pm in reply to: The search bar does not work in translations with GTranslate #54196Ernest Marcinko
KeymasterHi,
Try this custom code snippet:
add_filter('asp/ajax/headers/content_type', function($content_type) { return 'text/plain'; }, 99, 1);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.
However the current implementation was recommended by GTranslate developers and should work as-is, so they probably changed something somewhere, as I’m seeing added HTML closing and opening tags littered into the response body – as well as some missing strings.
Ernest Marcinko
KeymasterYou are very welcome Samuele 🙂
If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin and have not rated already, feel free to leave a rating on the wordpress plugin repository, it’s greatly appreciated.
Ernest Marcinko
KeymasterTry with the important modifier, they might get overwritten with higher specificity CSS:
margin-top: -5px !important;Ernest Marcinko
KeymasterHi,
Sure! Some attributes or attribute values might be marked as dangerous by the wp_kses_post hook, which is used to process the final content to avoid any XSS security threats.
Long story short, instead of using inline attributes, please use a class name and custom CSS instead:
<p class="myclassname">...</p>And custom CSS:
.myclassname { margin-top: -5px; margin-bottom: 5px; font-style: italic; font-size: 0.8em; }This will do the trick 🙂
Also, notice that the closing P tag has a mistake, it’s
</ip>and it should be</p>: https://i.imgur.com/NRkUbsg.pngErnest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
Sometimes external extensions use different hooks, so they don’t detect the search trigger. Often times it can be resolved with a few lines of code, but it depends on the use case.
I don’t have access to that extension though, can you please add temporary sFTP and back-end login details? I will try to debug through the query via editing the search code to see if there is a way to force the results to the blog extras module.
If it’s possible, then I will make sure to fix it for you locally and create a temporary patch until the next release.Ernest Marcinko
KeymasterHi!
Sure, no worries, I will assist you with everything!
I have logged in to look at the configuration and changed a few details for better results, but you can change them back of course:
– I de-selected the taxonomy terms as results. I assume you only want products as results, and you were seeing the product categories as results: https://i.imgur.com/mGYXdAb.png
– On the isotopic styling panel, I changed the title background to a darker black color: https://i.imgur.com/cEefBaR.png
– Also changed the title to a white to fit better: https://i.imgur.com/eR13ZjZ.png
– Another change is that the results layout is now a block, so instead of hovering over the content, it pushes it down: https://i.imgur.com/a19qFVS.png
– I also noticed that the tag label colors were overwritten by a theme CSS conflict, so I added the following custom CSS to resolve it:.asp_option_label { color: black !important; }I hope this helps!
I also recommend checking this WooCommerce video tutorial, it is specifically made for product search design.
Ernest Marcinko
KeymasterIf you have the prior version, then install that first. It shouldn’t make a difference, but just to be sure.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts