Title: Commented code from HT Mega?
Last modified: June 13, 2025

---

# Commented code from HT Mega?

 *  [savingyourtail](https://wordpress.org/support/users/savingyourtail/)
 * (@savingyourtail)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/commented-code-from-ht-mega/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcommented-code-from-ht-mega%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [MOHAMMAD SAIDUL ISLAM](https://wordpress.org/support/users/saidulhastech/)
 * (@saidulhastech)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/commented-code-from-ht-mega/#post-18512968)
 * 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.

 * ![](https://ps.w.org/ht-mega-for-elementor/assets/icon-256x256.png?rev=2924556)
 * [HT Mega Addons for Elementor - Elementor Widgets & Template Builder](https://wordpress.org/plugins/ht-mega-for-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ht-mega-for-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ht-mega-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/ht-mega-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ht-mega-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ht-mega-for-elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MOHAMMAD SAIDUL ISLAM](https://wordpress.org/support/users/saidulhastech/)
 * Last activity: [9 months, 3 weeks ago](https://wordpress.org/support/topic/commented-code-from-ht-mega/#post-18512968)
 * Status: not resolved