found code not useful

Posted in: Newsmag
Post count: 28

I found in the code of the page after <! – JS generated by theme -> several references to elements and or plugins that are not active and that have been activated with mail.
EX:
var td_email_user_pass_incorrect
#buddypress
.woocommerce
unused post templates

how to get rid of this useless code

Take a look here at the code of this page
https://www.vignaclarablog.it/2020100594981/tor-di-quinto-a-marzo-2021-torna-il-cirque-du-soleil/
Thanks

Post count: 35449

Hi,
Indeed some of that code it is from the theme, unfortunately the only way to remove it is from theme files, most of theme are set using minify css.
Unfortunately even if you remove them from the theme after a theme update the code will be set back.
I know that there were some plugins that can remove un use code to be load in theme, unfortunately I can not remember the name of that plugin.
Thank you for your understanding!

Post count: 28

In a world where site speed matters and where I spend money eg a professional CDN and caching plugin adding useless code without the ability to delete it seems crazy to me.

Since you changed the other theme by putting it in the TAGDIV editor a lot has gotten worse in terms of speed and usability of the theme.

Please give me the detailed instructions to remove the useless code. It means that I will carry out these processes at each update.
Thank you

Post count: 35449

Hi ediwebroma, first of all I made a test using only these plugins -> https://i.imgur.com/ADRNHMN.png and I do not have this extra code -> https://i.imgur.com/5yGLDPF.png -> https://i.imgur.com/QiWVQvA.png like you have -> https://i.imgur.com/ZlJih7t.png after that I checked it the code source and this is on this file path -> wp-content/plugins/td-composer/legacy/Newsmag/includes/td_css_generator.php -> https://i.imgur.com/bykCQGD.png
Hope this will help you to remove the extra css. Also you can make first a text since this is not displaying for my, it can be something with the theme version you have, what you can do is to disable and delete tagDiv Composer, then reinstall it from Newsmag> plugins if the code is still there then you need to remove it from theme files.
Let me know the results!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.