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 Excerpt support to Pages | |
add_post_type_support( 'page', 'excerpt' ); | |
//* Output Excerpt on Pages | |
add_action( 'genesis_meta', 'lwp_page_description_meta' ); | |
function lwp_page_description_meta() { | |
if ( is_singular() && is_page() && has_excerpt() ) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'lwp_open_after_header', 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
//* ADD EDITOR STYLE TO YOUR WORDPRESS THEME | |
add_action( 'init', 'cd_add_editor_styles' ); | |
/** | |
* Apply theme's stylesheet to the visual editor. | |
* | |
* @uses add_editor_style() Links a stylesheet to visual editor | |
* @uses get_stylesheet_uri() Returns URI of theme stylesheet | |
*/ | |
function cd_add_editor_styles() { |
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
.amp-wp-header { | |
background-color: #d68231; | |
} | |
.amp-wp-header a { | |
color: #fff; | |
text-decoration: none; | |
font-weight: bold; | |
} |
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
<table> | |
<thead> | |
<tr> | |
<td>Features</td> | |
<th>iPhone 5</th> | |
<th>iPhone 6</th> | |
<th>iPhone 7</th> | |
<th>iPhone 8</th> | |
</tr> | |
</thead> |
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
<table> | |
<thead> | |
<tr> | |
<th>Features</th> | |
<th>iPhone 5</th> | |
<th>iPhone 6</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
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
<table> | |
<thead> | |
<tr> | |
<th>Features</th> | |
<th>iPhone 5</th> | |
<th>iPhone 6</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
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
/*----- Display Logo before Site Title -----*/ | |
add_action( 'genesis_header', 'lwp_site_image', 5 ); | |
function lpw_site_image() { | |
$header_image = '<img src="https://freeiconshop.com/files/edd/person-girl-flat.png" alt="" />'; | |
printf( '<div class="site-image">%s</div>', $header_image ); |