Home › Forums › WordPress Plugins › Hide My WP › 4 "wp-" left in source code
- This topic has 7 replies, 3 voices, and was last updated 9 years, 3 months ago by
Marcel.
-
AuthorPosts
-
March 21, 2016 at 4:53 pm #8547
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′ type=’text/css’ media=’all’ />
2) <link rel=’https://api.w.org/’ href=’http://mysite/wp-json/’ />
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>
Any help?
PS: I’m kind of a noob so just assume you’re explaining the steps to a 4 years old 🙂
Thanks!
March 22, 2016 at 2:56 am #8553Hi,
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_css2) 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
March 22, 2016 at 9:47 am #8560Hi,
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
March 23, 2016 at 3:09 am #8574You should add only one replacement in one box. So, only following line in one box:
wp-jquery-ui-dialog-css ==> jquery_ui_dialog_cssTo 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.jsAdd following replacement in “replace urls”
wp-includes/js/wp-emoji-release.min.js ==> wp-includes/js/emj.jsMarch 23, 2016 at 9:17 am #8582Hi,
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
March 23, 2016 at 12:59 pm #8584To 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 );
March 25, 2016 at 11:21 am #8600Hola,
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,
March 29, 2016 at 10:43 am #8661Hola!
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!
-
AuthorPosts
You must be logged in to reply to this topic.