Skip to content

Instantly share code, notes, and snippets.

@rohmann
Created September 7, 2013 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohmann/6480021 to your computer and use it in GitHub Desktop.
Save rohmann/6480021 to your computer and use it in GitHub Desktop.
Some CSS to hide the Site URL and Home URL from the Wordpress settings page. http://git.io/fFVxOA
<?php
add_action('admin_head', 'custom_admin_css');
function custom_admin_css() { ?>
<style>
label[for=siteurl], input[name=siteurl], label[for=home], input[name=home], input[name=home] + p.description {
display: none;
}
</style>
<?php
}
@rohmann
Copy link
Author

rohmann commented Sep 10, 2013

This can be placed in at theme's functions.php or within a plugin.

For quick implementation without coding, use these steps:

  1. Download the PHP file by click clicking the raw icon above (see image) and chosing "Save link as"
  2. Upload that file to the wp-content/mu-plugins folder
    alt text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment