Skip to content

Instantly share code, notes, and snippets.

@agrd
agrd / storefront-post-meta-widget.php
Created January 21, 2018 11:10 — forked from bekarice/storefront-post-meta-widget.php
Storefront Post Meta Widget: moves post meta into a widget and displays full-width blog posts
<?php
/**
* Plugin Name: Storefront Post Meta Widget
* Plugin URI: https://www.skyverge.com/blog/create-smart-woocommerce-widget/
* Description: Adds a widget to display blog post meta in the Storefront theme
* Author: SkyVerge
* Author URI: https://www.skyverge.com/
* Version: 1.0.0
* Text Domain: storefront-post-meta
*
// Move Footer widgets and Footer outside Site Container
// Reposition the footer widgets
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
add_action( 'genesis_after', 'genesis_footer_widget_areas' );
// Reposition the footer
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
@agrd
agrd / functions.php
Created December 27, 2017 17:17 — forked from srikat/functions.php
Parallax animations in Genesis using Stellar.js. http://sridharkatakam.com/parallax-animations-genesis-using-stellar-js/
//* Enqueue Stellar on homepage
add_action( 'wp_enqueue_scripts', 'enqueue_stellar' );
function enqueue_stellar() {
if ( ! ( is_home() || is_front_page() ) )
return;
wp_enqueue_script( 'stellar', get_stylesheet_directory_uri() . '/js/jquery.stellar.min.js', array( 'jquery' ), '', true );
wp_enqueue_script( 'stellar-init', get_stylesheet_directory_uri() . '/js/jquery.stellar.init.js', array( 'stellar' ), '1.0.0', true );