how to remove “Powered by Searchanise” from the search bar
-
04-10-2020 - |
Вопрос
I am building the magento ecommerce website named "bookslab.in". I want to remove the "Powered by Searchanise" from the search bar of my magento site. I had attached the screenshot of which section i have to remove & how much part i have to remove. I had installed an Searchanise extension. Any help will be appreciated. Someone suggested my to edit in module, but how to edit this module. Any one know please answer this if anyone did not got i will explain them again. While accessing the Putty to connect with SSH getting "Connection Timout" error.
Решение
try the following:
Brute find and remove
SSH to magento root folder and search for 'Searchanise':
find ./app ./skin ./lib ./js -type f -exec grep -iHn --color=always 'Powered by.*Searchanise' {} \;
if found edit the file and remove it.
Display:none for html element
Use Chrome inspector or Firefox devtools to find class name or ID of an element that contains 'Powered by Searchanise': once found add this CSS rules to your styles.css file:
.classname{display:none;}
Другие советы
You are able to remove powered by text using jQuery. Following is one of the method is to remove text.
<script type="text/javascript" language="javascript">
jQuery(document).ready(function(e) {
setInterval(function(){
jQuery('.snize-ac-results a').each(function() {
if (jQuery(this).text() == 'Powered by Searchanise')
jQuery(this).text('');
});
}, 3000);
});
</script>
This code will not work if they will change class name as '.snize-ac-results'. This is temporary/quick solution now.