• I’m working on optimizing my site and noticed a large chunk of code commented out when I view source on my page. I’ve searched all my custom code files and don’t see it, and there’s reference to the HT Mega Search Box, so I am wondering if this is being put in by HT Mega. Would you be able to verify? Below is part of that code (it’s much longer than this – 170 lines in total and about 6KB)

    // (function($){// “use strict”;// $(document).ready(function() {// // Toggle search box open/close on click// $(‘.search-button’).click(function(){// $(this).parent().toggleClass(‘open’);// });
    // // Close search box when clicking outside of it// $(document).click(function(e) {// if (!$(e.target).closest(‘.htmega-search-box’).length && !$(e.target).closest(‘.search-button’).length) {// $(‘.htmega-search-box’).removeClass(‘open’);// }// });// });// })(jQuery);

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support MOHAMMAD SAIDUL ISLAM

    (@saidulhastech)

    Hello,
    Thank you for bringing this to our attention.

    We have carefully checked the code within our plugin but could not find the commented code snippets you provided. It’s possible that these commented codes were added as custom code by you or are being generated by another plugin on your site.

    Best regards,
    Saidul Islam

Viewing 1 replies (of 1 total)

The topic ‘Commented code from HT Mega?’ is closed to new replies.