Conflict with NextEnd Smart Slider extension.

Created by Nicole Le, Modified on Mon, 31 Jul 2017 at 09:41 AM by Robin Hoang

QUESTION:


We have upgraded the NextEnd Smart Slider extension and now our score on GTMetrix is not 100% anymore.


ANSWER


Nextend2_Nextend2 module adds javascript over head tag

Please follow below steps to fix the issue:

+ add before closing tag of html

/public_html/app/code/community/Nextend2/Nextend2/Model/Observer.php

+ backup:

/public_html/app/code/community/Nextend2/Nextend2/Model/Observer.php__

+ edit line26

$response->setBody(preg_replace('/<\/head>/', $head . '</head>', $response->getBody(), 1));

to

$response->setBody(preg_replace('/<\/html>/', $head . '</html>', $response->getBody(), 1));


If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 1 Extensions: https://bsscommerce.com/extensions.html


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article