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 use | |
// this goes in the child theme functions.php file | |
// See: https://codex.wordpress.org/Function_Reference/wp_register_script | |
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/ | |
function christina_register_enqueue_scripts() { |
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 use | |
//this goes inside the functions.php file in your Genesis child theme. USE FTP and a code editor. | |
/** ==================================================================================== | |
Replace breadcrumb on single attachment 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 use | |
// this goes inside your functions.php file. Check your functions file if a different priority is required. | |
// use FTP and a code editor. Change the prefix_ in the two locations to your theme prefix. Do not use dashes or hyphens. | |
/** ==================================================================================== | |
* Add div and image inside .site-header, before logo just inside the .wrap | |
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
## If your server has a redirect problem with | |
## .htpasswds protection on wp-admin directory, add the following: | |
ErrorDocument 401 default | |
## ------- UNSET PRAGMA ------ | |
## https://www.mnot.net/cache_docs/#PRAGMA |
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 include this | |
/** ==================================================================================== | |
* Break more link outside the paragraph in the loop on all archives (home, archives, search, etc) | |
==================================================================================== **/ | |
function yourprefix_excerpt_more_link() { |
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
/** ====================================================================================== | |
* | |
* Automatically Exclude Password Protected Pages | |
* | |
* Kudos: https://gist.github.com/bonny/5772054 | |
* The original (linked above) uses an argument: | |
* wp_list_pages('title_li=&post_type=faqs&echo=0&exclude_password_protected=1') | |
* | |
======================================================================================= */ | |
function ca_exclude_password_protected_pages($pages, $r) { |
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 use | |
/** ====================================================================================== | |
* | |
* Admin Bar Bottom | |
* | |
* if you use the admin bar at the bottom on | |
* the backend add: html.wp-toolbar {padding-top:0px} to the CSS | |
* |
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 above. This goes inside your child theme functions.php file | |
/** ====================================================================================== | |
* | |
* Add shortcode to the Genesis 2.3.0 | |
* Archive Intro Text Output | |
* | |
======================================================================================= */ | |
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' ); |