Skip to content

Instantly share code, notes, and snippets.

/*
Plugin Name: Simple Responisve Column Shortcodes
Plugin URI: https://rm314.com
Description: Adds responisve based nest-able column shortcodes.
Version: 1.0
Author: Jimmy Knoll
Author URI: http://jimmyknoll.com
License: GPL2
*/
// create filter to hide all social share btns on custom posts and insert on regular posts
add_filter ('the_content', 'inserthidesocial');
function inserthidesocial($content) {
if(is_singular( 'post' ) ) {
$content.= '<br/>';
$content.= do_shortcode( '[ssba]' );
}
return $content;
}
/*
Theme Name: twentyseventeen child theme
Theme URI: https://wordpress.org/themes/twentyseventeen/
Description: a bare-bones child theme for use with twentyseveteen theme.
Author: James Knoll
Author URI: http://jamesknoll.online/
Template: twentyseventeen
Version: 1.0.0
*/
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
function my_custom_login() {
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('stylesheet_directory') . '/login/custom-login-styles.css" />';
}
add_action('login_head', 'my_custom_login');
body.login {
background-image: url('home-bg.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
.login h1 a {
background-image: url('login-logo.png');
}
.login label {
font-size: 12px;
color: #555555;
}
.login input[type="text"]{
background-color: #ffffff;
border-color:#dddddd;
-webkit-border-radius: 4px;
}
.login .button-primary {
width: 120px;
float:right;
background-color:#17a8e3 !important;
background: -webkit-gradient(linear, left top, left bottom, from(#17a8e3), to(#17a8e3));
background: -webkit-linear-gradient(top, #17a8e3, #17a8e3);
background: -moz-linear-gradient(top, #17a8e3, #17a8e3);
background: -ms-linear-gradient(top, #17a8e3, #17a8e3);
background: -o-linear-gradient(top, #17a8e3, #17a8e3);
background-image: -ms-linear-gradient(top, #17a8e3 0%, #17a8e3 100%);
function my_login_logo_url() {
return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url_title() {
return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );