Skip to content

Instantly share code, notes, and snippets.

<?php
// Include Main Stylesheet on Login Page
function my_custom_login() {
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('stylesheet_directory') . '/assets/css/main.min.css" />';
}
add_action('login_head', 'my_custom_login');
// Add title to Login page
<?php
/*
Plugin Name: Fix WPHead
Plugin URI: https://ryan.dimasc.io/wp/plugins
Description: Removes unnecessary clutter from WPHead.
Version: 1.0.0
Author: Ryan DiMascio
Author URI: https://ryan.dimasc.io
*/
@rdimascio
rdimascio / 001-custom-post-type-plugin.php
Last active January 6, 2018 20:41
WordPress Custom Post Type
<?php
/**
* Plugin Name: Event Post Types
* Plugin URI: https://blog.dimasc.io/wordpress/creating-custom-post-types
* Description: A tutorial on creating custom post types wit WordPress.
* Version: 1.0
* Author: Ryan DiMascio
* Author URI: https://ryandimascio.com
* License: GPL2
*/