Skip to content

Instantly share code, notes, and snippets.

View RichardRottman's full-sized avatar

Richard Rottman RichardRottman

  • Hagerstown, Maryland
  • 14:05 (UTC -04:00)
View GitHub Profile
@RichardRottman
RichardRottman / genesis.child.theme.functions.php
Last active July 31, 2017 13:28
Things I add to any Genesis Child Theme
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
// Automatically adds the featured image to the top of every post entry, below the title and the post meta data.
add_action('genesis_entry_header', 'single_post_featured_image', 15);
function single_post_featured_image()
{
if (!is_singular('post'))
$hmac_data = $x_login . "^" . $x_fp_sequence . "^" . $x_fp_timestamp . "^" . $x_amount . "^" . $x_currency_code;
$x_fp_hash = hash_hmac('MD5', $hmac_data, $transaction_key);