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
<i class="dashicons dashicons-wordpress"></i> |
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
// Register a new custom post type named Books; | |
register_post_type('books', array( | |
'public' => true, | |
'menu_icon' => 'dashicons-book', | |
'label' => __( 'Books', 'local' ), | |
) | |
); |
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
.dashicons { | |
margin-right:2px; | |
} |
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
//Enqueue the Dashicons script | |
add_action( 'wp_enqueue_scripts', 'enable_dashicons_for_theme' ); | |
function enable_dashicons_for_theme() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
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
.wpp-mailchimp{ | |
background-color:#333; | |
color:#999; | |
padding:20px; | |
border-radius:10px; | |
} | |
.wpp-mailchimp h2{ | |
color:#fff; | |
text-align:center; | |
padding-bottom:10px; |
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
<!-- Begin MailChimp Signup Form --> | |
<div id="mc_embed_signup" class="wpp-mailchimp"> | |
<form action="xxxxxxxxxx" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
<div id="mc_embed_signup_scroll"> | |
<h2>Newsletter</h2> | |
<p>Enter your email address to subscribe to this blog and receive notifications of new posts by email</p> | |
<div class="mc-field-group"> | |
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Your Email Address"> | |
</div> | |
<div class="mc-field-group"> |
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 a custom image size, I'm calling it 'new-size'*/ | |
//if ( function_exists( 'add_image_size' ) ) { | |
//add_image_size( 'new-size', 300, 100, true ); //(cropped) | |
//} | |
/*enable the 'new-size' in Insert Media Dialog*/ | |
add_filter('image_size_names_choose', 'my_image_sizes'); | |
function my_image_sizes($sizes) { | |
$addsizes = array( | |
"new-size" => __( "New Size") |