Skip to content

Instantly share code, notes, and snippets.

View bearcodi's full-sized avatar

Mark Babič bearcodi

View GitHub Profile
@bearcodi
bearcodi / bc-confirm-css.css
Last active August 29, 2015 13:57
Custom CSS for WP Network Admin confirmation pages, drop it into mu-plugins or a plugins folder or adapt it to a themes functions.php. The css file is meant as an example to override the WordPress logo with a custom one.
.wp-core-ui h1#logo > a
{
border:1px solid blue;
/**
* change all the overrides here
width:;
height:;
background-image: none, url(/path/to/url.image);
@bearcodi
bearcodi / grant-super-admin.php
Last active December 27, 2015 08:58
Quick script to add WordPress "Super Admin" role to user. Add the file into /wp-content/mu-plugins WordPress folder.
<?php
/**
* Original Source http://wordpress.org/support/topic/recover-super-admin-access-after-username-change
*/
require_once(ABSPATH . 'wp-includes/pluggable.php');
grant_super_admin( 0 ); // Change to (int) ID value in wp_users