This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); | |
function enqueue_parent_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.login { | |
background-image: url('home-bg.jpg'); | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-position: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login h1 a { | |
background-image: url('login-logo.png'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login label { | |
font-size: 12px; | |
color: #555555; | |
} | |
.login input[type="text"]{ | |
background-color: #ffffff; | |
border-color:#dddddd; | |
-webkit-border-radius: 4px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ); |