Remove links form source code header
-
Hi there,
I try to remove all links from the source code header (link to external .css and to some Javascript files. I tried with creating a function like this –
<?php // Clean up the <head> function removeHeadLinks() { remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'rel_link'); } add_action('init', 'removeHeadLinks'); ?>
– but it′s not working. Can s.o. help me? Otherwise i don′t get the idea of copying wordpress in a crypted folder on the server out of security reasons when you can see the name of that crypted folder in the source code …
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove links form source code header’ is closed to new replies.