Skip to content

Instantly share code, notes, and snippets.


Know the Code Pro - Team Gist account KnowTheCodePro

View GitHub Profile
KnowTheCodePro / home.php
Created Apr 28, 2016
Genesis Home Page that uses the Genesis > Theme Settings > Blog Page Template
View home.php
* Home page (posts page)
* @package Altitude
* @since 1.0.0
* @author hellofromTonya
* @link
* @license GNU General Public License 2.0+
KnowTheCodePro / instructions.txt
Last active Apr 28, 2016
Genesis Read More Link - Change the HTML and Text
View instructions.txt
Here are the instructions for you:
1. Watch the video that walks you through this
2. Create a new folder in your theme's `lib` folder called `structure`.
3. Inside of `structure`, add the `post.php` file below. Just copy and paste it into that folder.
4. In your `functions.php file`, paste this line of code: `include( CHILD_DIR . '/lib/structure/post.php' );`, which loads up your new `post.php` file.
5. Now in your `style.css` file, you need to find the following:
a. find here the `button` style is and then add `.more-link,` above it. Watch the video to see where to do this.
b. find the `button:hover,` and then add this above it: `.more-link:hover,`.
View is_array-when.php
namespace KnowTheCode;
function get_post_name( array $post ) {
return $post['post_name'];
$post = array(
'post_name' => 'PHP is_array - When',
View end-in-action.php
namespace KnowTheCode;
$members = array(
'first_name' => 'Tonya',
'Twitter' => 'hellofromTonya',
'email' => '',
KnowTheCodePro / deep-into-structure.php
Created Feb 16, 2016
PHP Array - Deep into Structure
View deep-into-structure.php
namespace KnowTheCode;
$fruit = array(
$members = array(
KnowTheCodePro / visualizingarray.php
Created Feb 16, 2016
PHP Array - Visualizing the Array
View visualizingarray.php
namespace KnowTheCode;
$main_st_homes = array(
1058 => array(
'floor1' => array(
100 => array(
'name' => 'Smith',
You can’t perform that action at this time.