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 | |
//don't add again | |
add_action( 'genesis_comments', 'your_prefix_paginate_comments', 15 ); | |
/** | |
* Paginate Comment Navigation | |
*/ | |
function your_prefix_paginate_comments() { |
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 | |
//don't add again | |
add_action( 'edit_form_after_title', 'your_prefix_posts_page_edit_form' ); | |
/** | |
* Add Editor Back on Posts Page | |
* @thanks https://robincornett.com/posts-page/ | |
*/ | |
function your_prefix_posts_page_edit_form( $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 | |
// don't add again | |
/** | |
* Close First Widget Area by default | |
* @modified from: https://wordpress.stackexchange.com/a/114724/64742 | |
*/ | |
add_action( 'admin_footer-widgets.php' , function(){ | |
?> |
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
.onsale { | |
box-sizing: content-box; | |
} | |
.woocommerce-product-gallery.woocommerce-product-gallery--with-images .flex-control-nav.flex-control-thumbs li { | |
padding: 2px; | |
} | |
.single-product .woocommerce-product-gallery.woocommerce-product-gallery--with-images > ol.flex-control-nav.flex-control-thumbs { | |
margin: 2px -2px 0; |
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 namespace Your_Name_Space; | |
/** | |
* | |
* Classic Text Widget to address 4.8 WordPress Update | |
* | |
* READ AND DO: | |
* Change the text domain ``your-text-domain`` = 2 locations in the code | |
* Change the namespace ``Your_Name_Space`` 3 locations in the code |
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 | |
// don't add twice | |
// 1. this adds the metabox and field to the CPT tesimonial (see CMB2 docs). Requires CMB2. | |
/** | |
* | |
* Add Testimonial Author Metabox and Field | |
* | |
*/ |
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 | |
//don't re-add | |
/** | |
* | |
* custom entry content : replace the archive content with your own build for the excerpt/content limit | |
* |