Skip to content

Instantly share code, notes, and snippets.

Ryan DiMascio rdimascio

Block or report user

Report or block rdimascio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wp-login-functions.php
<?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
View fix-wphead.php
<?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
*/
View 001-custom-post-type-plugin.php
<?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
*/
You can’t perform that action at this time.