Support

Home Forums Pre-Sales EE 3 Template Comments

EE 3 Template Comments

Posted: February 28, 2014 at 6:06 am

Viewing 4 reply threads


Thomas Mengwasser

February 28, 2014 at 6:06 am

Hi,

i’ve got some HTML Comments in my Source and would love to hide them. How and where can i delete them? I bought the Plugin already for a client and he doesn’t like them.

<code>&lt;!--Event Espresso Template Files:

Dir:  .
Dir:  ..

--&gt;
</code>


Thomas Mengwasser

February 28, 2014 at 6:34 am

found them in plugins/event-espresso/includes/functions/admin.php line 1416. Is there a option to hide them? I couldn’t find it.


Josh

  • Support Staff

February 28, 2014 at 10:45 am

Hi Thomas,

While there isn’t an option to hide them, they are added via a WordPress action hook. So they can be removed by creating a little function that removes them from the wp_footer action.


Thomas Mengwasser

March 5, 2014 at 1:34 am

ok thank you. could you provide me a function that will do that?


Dean

March 5, 2014 at 4:55 am

Add the following to your themes functions.php

remove_action('wp_footer', 'espresso_files_in_uploads', 20);

please note that theme updates will remove that line of code unless you have a child theme. You could alos add that line of code to a custom plugin.

Viewing 4 reply threads

The support post ‘EE 3 Template Comments’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso