Home Forums WordPress Plugins Hide My WP 4 "wp-" left in source code

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8547
    juliet
    Post count: 2

    Hi there,

    I’ve managed to remove most of the footprints (thanks to this forums) but I still have 4 showing which I can’t seem to get rid of. Here they are.

    1) <link rel=’stylesheet’ id=’wp-jquery-ui-dialog-css’ href=’http://mysite/lib/css/jquery-ui-dialog.min.css?ver=4.4.2&#8242; type=’text/css’ media=’all’ />

    2) <link rel=’https://api.w.org/&#8217; href=’http://mysite/wp-json/&#8217; />

    3) var _wpcf7 = {“loaderUrl”:”http:\/\/mysite\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif”

    4) <script type=’text/javascript’ src=’http://mysite/lib/js/wp-embed.min.js?ver=4.4.2′></script&gt;

    Any help?

    PS: I’m kind of a noob so just assume you’re explaining the steps to a 4 years old 🙂

    Thanks!

    #8553
    Suman M.
    Post count: 12480

    Hi,

    1) to replace IDs in tag like “wp-jquery-ui-dialog-css”, add the replacement like below in HMWP ‘replace in html’ option under replace tools tab:
    wp-jquery-ui-dialog-css ==> jquery_ui_dialog_css

    2) to remove wp-json, if you do not use enhanced embeds in wordpress then disable this feature using this plugin – https://wordpress.org/plugins/disable-embeds/

    3) “_wpcf7” is a javascript variable added by 3rd party plugin, and replacing it might break the plugin’s functionality.

    4) as in step 2 above

    #8560
    juliet
    Post count: 2

    Hi,

    Thank you for your reply.

    I was able to remove http://mysite/lib/js/wp-embed.min.js?ver=4.4.2 thanks to the embed plugin.

    1) http://mysite/wp-json/ remains, even after the plugin installed

    2) wp-jquery-ui-dialog-css remains, even after doing what you told me. See https://i.gyazo.com/da8343f8eec3228db53036f722977d2b.png

    Any idea? Is there a way to manually remove these maybe?

    Thank you

    #8574
    Suman M.
    Post count: 12480

    You should add only one replacement in one box. So, only following line in one box:
    wp-jquery-ui-dialog-css ==> jquery_ui_dialog_css

    To replace wp-emoji-release.min.js add this:

    Add following replacement in “replace in html” (under replace tools tab):
    wp-emoji-release.min.js ==> emj.js

    Add following replacement in “replace urls”
    wp-includes/js/wp-emoji-release.min.js ==> wp-includes/js/emj.js

    #8582
    juliet
    Post count: 2

    Hi,

    That helped for wp-jquery. You mention wp-emoji, which I supposed is a mistake since the last one I have is wp-json. Which lines should I use for this one?

    Thanks a lot for your help

    #8584
    Suman M.
    Post count: 12480

    To remove wp-json, you’ll need to add the following line in your theme’s functions.php

    remove_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10 );

    #8600
    Marcel
    Post count: 3

    Hola,

    First, excellent help here, thanks a lot for this! Love the plugin.

    Now, I have tried:
    To remove wp-json, you’ll need to add the following line in your theme’s functions.php
    remove_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10 );

    – Didn’t work on my theme, I made another ‘Replace URL’ and added as old ‘wp-json/’ , new ‘site-json’ , that worked for me.

    Hope this helps others.

    Kind Regards,

    #8661
    Marcel
    Post count: 3

    Hola!

    Another useful tip; install the ‘Classic Smilies’ plugin from wp-repository to disable any ‘wpemoij’ leftovers.

    Awesome, my site is now completely ‘wp free’ ! Yay !

    Thanks so much for this great plugin!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.