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
add_action('init', '1974929_custom_init'); | |
function 1974929_custom_init() { | |
add_post_type_support( 'news', 'publicize' ); | |
add_post_type_support( 'review', 'publicize' ); | |
} |
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 jetpackme_portfolio_labels() { | |
register_post_type( 'jetpack-portfolio', | |
array( | |
'labels' => array( | |
'name' => __( 'Portfolio' ), | |
'singular_name' => __( 'Portfolio' ) | |
), | |
) | |
} | |
add_action( 'init', 'jetpackme_portfolio_labels' ); |
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 | |
function 1939551_change_grunion_success_message( $msg ) { | |
global $contact_form_message; | |
return '<h3>' . 'My custom success message' . '</h3>' . wp_kses($contact_form_message, array('br' => array(), 'blockquote' => array()));; | |
} | |
add_filter( 'grunion_contact_form_success_message', '1939551_change_grunion_success_message' ); | |
?> |
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
add_action('init', 'rsc_custom_init'); | |
function rsc_custom_init() { | |
add_post_type_support( 'your-custom-post-type-name', 'publicize' ); | |
} |
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 rsc_cpt_permalink() { | |
$args = array( | |
'rewrite' => array('slug' => 'custom-slug') | |
); | |
register_post_type( 'portfolio', $args ); | |
} | |
add_action( 'setup_theme', 'rsc_cpt_permalink' ); |
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
@media screen and (min-width : 901px) { | |
.single-post .content-area { | |
margin: 2% 4% 2% 6%; | |
width: 90%; | |
} | |
} |
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
.sd-content li a span { | |
border: none; | |
display: inline; | |
} |
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
/** | |
* 1.0 Enqueue Scripts | |
* | |
* Enqueue custom scripts for GearBottle.com | |
*/ | |
function gearbottle_enqueue_script() { | |
wp_enqueue_script( 'ads', '//example.com/script.js', false); // Ads script | |
} | |
add_action( 'wp_enqueue_scripts', 'gearbottle_enqueue_script' ); |
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 | |
/* | |
Plugin Name: RSC Functionality Plugin | |
Plugin URI: http://ryanscowles.com | |
Description: A plugin that contains all site specific functionality for YOUR SITE | |
Version: 0.1 | |
Author: Ryan Cowles | |
Author URI: http://ryanscowles.com | |
License: GPL2 |