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 cf_sort_hex_colors($colors) { | |
$map = array( | |
'0' => 0, | |
'1' => 1, | |
'2' => 2, | |
'3' => 3, | |
'4' => 4, | |
'5' => 5, |
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
/* Do underline links in content areas */ | |
.entry-content a, | |
.page-content a, | |
.social-comment-body a { | |
text-decoration: underline; | |
} |
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
/* Hide the header on small mobile devices */ | |
@media screen and (max-width: 768px) { | |
#masthead { | |
display: none; | |
} | |
} |
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
/* Reduce the height of header and featured post boxes */ | |
#masthead { | |
padding-bottom: 31px; | |
padding-top: 26px; | |
} | |
#masthead .featured { | |
height: 140px; | |
} | |
#masthead .featured.has-featured-img, |
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 | |
// remove the CSS for Colors from the HTML (if you want to load it via child theme instead) | |
function favepersonal_remove_inline_color_css() { | |
remove_action('wp_head', 'cfcp_color_css_min', 8); | |
} | |
add_action('wp', 'favepersonal_remove_inline_color_css', 11); |
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 | |
// Place this file inside your child theme as /loop/home.php | |
// Shows full content for the first three "standard" format posts in the loop | |
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); } | |
if (CFCT_DEBUG) { cfct_banner(__FILE__); } | |
global $post; |
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 | |
// Show full content (with links, blockquotes, etc.) for link format posts | |
// put this file in excerpt/format-link.php in your child theme. | |
cfct_template_file('content', 'format-link.php'); |
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: Formats as Categories | |
Plugin URI: http://alexking.org/projects/wordpress | |
Description: Have enabled post formats show up as categories for selection via XML-RPC clients (iPhone, Android, etc.). | |
Version: 1.0dev | |
Author: Crowd Favorite | |
Author URI: http://crowdfavorite.com | |
*/ |
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 | |
/** | |
* Include a specific file based on directory and filename | |
* | |
* @param string $dir Directory the file will be in | |
* @param string $file Filename | |
* @param array $data pass in data to be extracted for use by the template | |
* | |
**/ | |
function cfct_template_file($dir, $file, $data = array()) { |
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 | |
// Run this code on 'after_theme_setup', when plugins have already been loaded. | |
add_action('after_setup_theme', 'my_load_plugin'); | |
// This function loads the plugin. | |
function my_load_plugin() { | |
// Check to see if your plugin has already been loaded. This can be done in several | |
// ways - here are a few examples: |