Skip to content

Instantly share code, notes, and snippets.

@cjkoepke
Created December 1, 2015 03:15
Show Gist options
  • Save cjkoepke/9390813f474adbabd2a0 to your computer and use it in GitHub Desktop.
Save cjkoepke/9390813f474adbabd2a0 to your computer and use it in GitHub Desktop.
Add a blank tracker DIV to the end of an article in Genesis. For use with the Progress Bar tutorial on calvinkoepke.com
<?php
//* Do NOT include the opening PHP tag
//* Add end of content tracker
add_action( 'genesis_after_entry_content', 'ck_content_tracker' );
function ck_content_tracker() {
echo '<div id="end-of-content"></div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment