Hi @sitharaek!
Let’s try this solution as well. It will add FiboSearch to the footer, but you will need to modify the class name where I’ve indicated to the class name of the widget to which you want to add the FiboSearch icon. You can check this by right-clicking or pressing F12 > Inspect on that Widget. The class will be visible in the Elements tab within the attribute class=""
(example). Unfortunately, I don’t know which theme you’re using and I don’t have your website URL, so I can’t provide you with that name.
// Add FiboSearch icon to the Footer
add_action('wp_footer', function() {
echo do_shortcode('[fibosearch layout="icon" class="fibosearch-in-footer"]');
?>
<script>
jQuery(document).ready(function($) {
var searchWrapper = $('.fibosearch-in-footer .dgwt-wcas-search-wrapp');
var footer = $('.site-footer .widget-1'); // Change this classes to your footer and widget-class class or id use # instead . for ID, example: #site-footer #widget-1
if(searchWrapper.length > 0 && footer.length > 0) {
footer.append(searchWrapper);
}
});
</script>
<?php
}, 9999 );
You have two ways to add this code to your theme:
- Open the
functions.php
in your child theme and add the code at the end.
- or install the Code Snippets plugin and apply this code as a snippet.
—
GTTranslate:
We wanted to integrate FiboSearch with the GTranslate plugin. The reason why we failed to do so was because we encountered two major obstacles:
- GTTranslate translations are translated on the fly; so, FiboSearch can’t search for translated content because transitions aren’t stored in a database.?The plugin’s author himself claims that it’s impossible?(read the plugin’s author article)
- users have no control over translations – everytime we got gibberish translations
—
Answer to question about out-of-stock products is here.
—
Regards,
Kris