Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created September 17, 2019 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/7bd698e1009de74897b32cedce25756c to your computer and use it in GitHub Desktop.
Save braddalton/7bd698e1009de74897b32cedce25756c to your computer and use it in GitHub Desktop.
Add button using PHP code in Genesis
add_action( 'genesis_header_right', 'hook_header_right' );
function hook_header_right() {
echo '<a class="button" href="http://example.com">Click Button</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment