Skip to content

Instantly share code, notes, and snippets.

View NormanHoehne's full-sized avatar

Norman Höhne NormanHoehne

View GitHub Profile
@NormanHoehne
NormanHoehne / functions.php
Created March 3, 2016 10:59 — forked from nathanrice/functions.php
Add back blogPosting Schema to Genesis sites
<?php
/*
Add back Schema.org/blogPosting microdata to post entries.
Replace all instances of "themedemo" with something unique to your site.
User input is required in the last function. Be sure to fill these fields in with your own information.
Instances where you need to fill in information will be marked with a comment that indicates so.
*/
@NormanHoehne
NormanHoehne / functions.php
Last active March 7, 2016 12:49 — forked from srikat/functions.php
Replacing Header Right widget area conditionally in Genesis. http://sridharkatakam.com/replace-header-right-widget-area-conditionally-genesis/
//* Register Header Right Inner Primary sidebar
genesis_register_sidebar( array(
'id' => 'header-right-inner',
'name' => __( 'Header Right Inner', 'your-theme-slug' ),
'description' => __( 'This is the header right inner sidebar.', 'your-theme-slug' ),
) );
//* Show Header Right Inner widget area in Header Right location on all pages other than homepage
add_action( 'genesis_before_header', 'sk_replace_header_right_sidebar' );
function sk_replace_header_right_sidebar() {
@NormanHoehne
NormanHoehne / acf-fields.php
Created May 3, 2017 09:09 — forked from hereswhatidid/acf-fields.php
Create custom product details tabs within WooCommerce using an ACF (Advanced Custom Fields) Repeater field.
<?php
if( function_exists('acf_add_local_field_group') ):
acf_add_local_field_group(array (
'key' => 'acf_product_options',
'title' => 'Product Options',
'fields' => array (
array (
'key' => 'acf_product_options_tabbedcontent_label',
'label' => 'Tabbed Content',