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
<a href="http://www.codethedream.org" class="button" alt="Ready to learn more?">Click here to learn more about Code the Dream</a> |
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 | |
// Question 5: /////////////////////////////////////////////////////// | |
// The following code will print "Chris" onto the webpage (True/False): | |
$name = '<h2>Chris</h2>'; | |
// Question 6: /////////////////////////////////////////////////////// |
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 | |
/* Alex, here is your challenge: | |
1) Save this file and upload it to wp-content/themes/corporate-pro | |
You will want your code here to only apply to single sites. Use https://wphierarchy.com to determine the filename that you should use. It will be one of these: | |
a) single.php | |
b) page-sites.php | |
c) single-sites.php | |
d) sites-single.php | |
e) singular-sites.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 | |
// Reference: https://codex.wordpress.org/Class_Reference/WP_Query | |
$args = array( | |
'post_type' => 'resource', // enter your custom post type or use 'post' for regular posts | |
'tax_query' => array( // see https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters | |
array( | |
'taxonomy' => 'people', | |
'field' => 'slug', |
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
.static-board-member { | |
text-align: center; | |
padding: 20px; | |
background: #eee; | |
border-radius: 8px; | |
} | |
.wp-block-clb-custom-blocks-board-member .static-board-member { | |
border: 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
.wp-block-custom-blocks-iframe { | |
background: #eee; | |
border: 2px #ddd solid; | |
padding: 1rem; | |
padding-bottom: 0; | |
} | |
.clb-iframe-placeholder-area { |
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: Custom Post Types & Functionality | |
Description: Site specific code changes for WordCamp 2017 Test Site | |
Author: Chris Liu-Beers | Tomatillo Design | |
Author URI: http://www.tomatillodesign.com | |
Version: 1.1 | |
*/ | |
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 | |
/** | |
* Smart Passive Income Pro. | |
* | |
* This file adds functions to the Smart Passive Income Pro. | |
* | |
* @package Smart Passive Income Pro | |
* @author StudioPress | |
* @license GPL-2.0+ | |
* @link http://www.studiopress.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 | |
/* | |
* CLB Custom Genesis search results page template | |
* | |
*/ | |
// Use with SearchWP and also SearchWP Term Highlight plugins | |
add_action('genesis_after_header', 'clb_search_results', 14); | |
function clb_search_results() { |
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: SuperEditor | |
Description: Create New Role for Safe WordPress Editing | |
Author: Chris Liu-Beers | Tomatillo Design | |
Author URI: http://www.tomatillodesign.com | |
Version: 1.0 | |
*/ | |
// For Testing, remove the role and then add it back |
NewerOlder