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 | |
/** ====================================================================================== | |
* | |
* Read More the_content_more_link | |
* Check for the default <!--more--> and change it | |
* but leave custom <!--more Custom Text--> alone | |
* | |
======================================================================================= */ |
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 above. Put this in your functions.php file. | |
/** ====================================================================================== | |
* | |
* Paginate Comments | |
* | |
======================================================================================= */ | |
function yourprefix_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
//* Goes in functions.php | |
/** | |
* | |
* Add Front End Dashicon Support | |
* | |
*/ | |
function yourprefix_add_front_end_dashicons() { | |
wp_enqueue_style( 'dashicons' ); | |
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 | |
/** | |
* | |
* Read More :: the_content_more_link | |
* when full content is chosen in Genesis Settings and user has added <!--more--> | |
* Don't add paragraphs | |
* | |
*/ |
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
/* register and hook the widget area in the genesis_before_content area for home page only */ | |
/*fake demo only DON't use */ | |
nav.nav-primary:after { | |
content: ''; | |
width: 100%; | |
height: 0px; | |
padding-top: 30%; | |
background: url(http://shaybocks.co/foodiepro/wp-content/uploads/2012/01/nectarines-680x400.jpg) no-repeat center center; | |
background-size: cover; |
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
//* reference: https://sridharkatakam.com/load-posts-demand-using-ajax-genesis/ | |
jQuery( function( $ ){ | |
var page = 2, | |
loading = false; | |
$( 'body' ).on( 'click', '.load-more', function( ){ | |
if( ! loading ) { |
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 | |
//do not add if it's already at the top of your page | |
// don't add the 'shorcode-support-archive-intro-text.php' one, this covers both. | |
/** | |
* | |
* Add shortcode and autoembed support to Archive Intro Text | |
* change yourprefix_ in two locations | |
* | |
*/ |
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 | |
//do not add above php tag | |
/** | |
* | |
* add comment form above the discussion (list of comments) | |
* change yourprefix_ to yours | |
*/ | |
function yourprefix_reorder_comment_form_before_discussion() { |