Colophon

Server Information


Site Information

The theme is based on Twenty Fourteen with customizations to suit this site’s needs. Some of these customizations may be useful for WordPress generally and are listed below.

Custom login logo (in functions.php)

function my_login_logo() {
?>
    <style type="text/css">
        .login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/site-login-logo.png);
            padding-bottom: 30px;
        }
    </style>
</style>
<?php
}

add_action( 'login_enqueue_scripts', 'my_login_logo' );

Custom login logo link (in functions.php)

function loginpage_custom_link() {
	return home_url( '/' );
}

add_filter('login_headerurl','loginpage_custom_link');

Change bbPress forum ‘Keymaster’ role to ‘Administrator’ (in functions.php)

function my_custom_roles( $role, $user_id ) {
    if( $role == 'Keymaster' )
        return 'Administrator';

    return $role;
}

add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 3 );

Paste text as plain text in editor (in functions.php)

function tinymce_paste_as_text( $init ) {
    $init['paste_as_text'] = true;
    return $init;
}
add_filter('tiny_mce_before_init', 'tinymce_paste_as_text');
add_filter('teeny_mce_before_init', 'tinymce_paste_as_text');

function tinymce_load_paste_plugin( $plugins ) {
    return array_merge( $plugins, array( 'paste' ) );
}
add_filter( 'teeny_mce_plugins', 'tinymce_load_paste_plugin' );

Use theme styles for bbPress forum WYSIWYG editor (in functions.php)

function tinymce_other_css_for_content( $init ) {
	$init['content_css'] = get_bloginfo('stylesheet_directory') . "/css/editor-style.css";
	return $init;
}

add_filter('tiny_mce_before_init', 'tinymce_other_css_for_content');

Display Calibration and Characterization powered by ArgyllCMS