Last active
April 18, 2019 10:11
-
-
Save braddalton/22ba50bfc9185e46814a503b36bfbb76 to your computer and use it in GitHub Desktop.
Scroll Point - HTMl Bookmark Using PHP Code https://wpsites.net/wordpress-tips/how-to-create-anchor-points/#html-bookmark-php-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
add_action( 'genesis_entry_content', 'recipe_anchor_point', 5 ); | |
function recipe_anchor_point() { | |
if ( is_singular( 'post' ) ) { | |
printf( '<p><a href="%s" class="anchor">' . __( 'JUMP TO RECIPE' ) . '</a></p>', __( '#recipe' ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment