Forum Replies Created
-
AuthorPosts
-
September 11, 2023 at 3:20 pm in reply to: Open the PDF file after searching it with the customised Post name #45350
Ernest Marcinko
KeymasterSure!
I have placed it into the child theme functions.php file, it should be in effect now 🙂
Ernest Marcinko
KeymasterYou are very welcome 🙂
I am not available for custom work unfortunately, I am sorry.
Ernest Marcinko
KeymasterHi Tom,
I recalled someone else asked for a similar behavior, I recommended this custom code then:
add_action('wp_footer', 'asp_add_footer_script', 99999); function asp_add_footer_script() { ?> <script> jQuery(function($){ jQuery('body').on('click', '.asp_r .item', function(){ ASP.api(1, 'closeResults'); }); }); </script> <?php }This should do the trick.
Ernest Marcinko
KeymasterHi,
Thank you for the details!
If the menu widget is within the post contents (and it looks like it is), then it is going to be nearly impossible to simply remove it – unless it uses some sort of a special shortcode, in that case there might be some hope left.
I tried to check the issue, but the site asks for a password. I tried the password from the login details, but that didn’t work. Can you please check?
September 11, 2023 at 2:32 pm in reply to: Open the PDF file after searching it with the customised Post name #45342Ernest Marcinko
KeymasterHi,
Thanks for the details, it helps a lot!
In that case I believe you want to choose the “Sicherheitsdatenblätter” post type on the Search Sources panel for searching – and not the actual media files.
Thenb use this custom code to change the URL of the results to the custom URL field from ACF. All you need to change there is the $meta_key variable to:
$meta_key = 'Link zur Datei';To open the results on a new panel, use this option.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
The page printed whenever the plugin redirects to the results page is controlled by your theme. Try checking your theme editor templates, usually they have an option to customize that.
Ajax Search Pro only redirects to the results page, everything else is done by the theme.Ernest Marcinko
KeymasterHi Joe,
You can actually group by taxonomy terms (including woocommerce categories) via the settings, no code is required: https://i.imgur.com/qx69rIx.png
That should do the trick 🙂Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterI would recommend using the Posts or the Product widgets, as those are the ones officially supported (as shown on the demo).
Other 3rd party or core widgets may or may not work, depending on how differently they are coded.In the Elementor Posts widget you can still set to display testimonials as the data source, it should be capable of displaying any post type.
Ernest Marcinko
KeymasterHi,
It is hard to tell only by looking at the front-end, but the most common causes for missing results are exclusions.
I recommend checking those settings just in case you accidentally excluded a category/taxonomy or something else.Another thing is the search filters – even if you don’t use them, they are in effect. Check if you have any filters active, like taxonomy, date or custom field filters and turn them off.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterGreat, that helped.
This variation seems to work for me:
jQuery(document).ajaxComplete(function(event, xhr, settings) { ASP.initialize() });See here: https://i.imgur.com/aVeYrQ1.png
That should do the trick 🙂
-
AuthorPosts