Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterBut how can I get it to work on my frontpage and my other site-templates (so i can use it inside the menu-header) ? Maybe if I put the shortcode inside “a page-content” and this page content is then displayed with another shortcode inside my page-templates?That may work, but I hope it is not neccessary to over complicate it. I guess for some reason the page builder does some sort of a conversion for paragraphs and empty line break?
I think it might be just easier to ask the page builder support if they know what this is. There might be just an option to turn off or a line of code to use. It is also possible that this is a yet unknown bug, or it’s intentional for some reason.
I guess another possibility is to simply “minify” the search shortcode HTML output by removing any line breaks by wrapping it to a new shortcode, but that might be a bit fishy solution. Something like:
// use as [wd_asp_wrap] add_shortcode( 'wd_asp_wrap', 'asp_wrap_shortcode' ); function asp_wrap_shortcode() { $output = do_shortcode('[wd_asp id=1]'); return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$output); }Then use this new shortcode
[wd_asp_wrap], but I don’t know if this will actually do anything at all.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterIf you use the correct module then there might be a problem somewhere in the page builder output, the plugin is definitely not adding any paragraphs or line breaks, that would be devastating for the output and would cause issues in every case.
If you place the shortcode somewhere else, say like a post content or a page content, then I assume it does not have the auto generated line breaks and paragraph wrappers?
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
This issue happens when the plugin shortcode is placed into a text container which does not support HTML or shortcodes. Text containers will automatically append line breaks and paragraphs to anything as they consider the contents as text and not HTML.
Make sure to use the correct widget/module type where the shortcode is placed. Usually theme builders/plugins have specific modules to place shortcodes into. HTML modules could also work.
Ernest Marcinko
KeymasterI logged in to quickly check, but these results are not actually coming from Ajax Search Pro, these are completely different from what I get when triggering a search on the back-end.
That means, that something else is trying to override the shop search results. Is there any other search plugin, custom code or some sort of a shop page filter active by any chance?
When clickin on the pagination I see a request sent to the WordPress ajax handler, and it originates from a divi_filter_ajax_handler action.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Thank you for the kind words!
1. Theoretically possible, but only via custom coding and the autopopulate must be disabled. You can try the code below, but I can’t promise it will work in every case as it should:
add_action('wp_footer', 'asp_add_footer_script', 99999); function asp_add_footer_script() { ?> <script> jQuery(function($){ jQuery('input.orig').one('click', function(){ ASP.api(jQuery(this).closest('.asp_m').data('id'), jQuery(this).closest('.asp_m').data('instance'), 'searchFor', ''); }); }); </script> <?php }2. If you have a HTML code ready for the icon, then you could use the advanced title/content fields feature. It supports HTML, so you could add the icon to the title or the content fields.
Ernest Marcinko
KeymasterI have no idea at the moment then – it must be something with the system. I have tried on the same exact setup and it was all okay on all browsers every single time.
Nevertheless I have placed an issue to the tracker, we will keep an eye on this.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Thank you for the details! The auto-populate feature was enabled, I have turned it off for you. Because of that it appeared as if the live search was triggered. On mobile devices it triggers differently, that is why it didn’t show on desktop.
It should be okay now 🙂
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts