Skip to content

Instantly share code, notes, and snippets.

@DevinVinson
DevinVinson / gist:9559479
Created March 14, 2014 23:51
Change the Enfold single product page layout
#
# wrap single product image in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
function avia_add_image_div()
{
echo "<div class='four units single-product-main-image alpha'>";
}
<?php
/*
Plugin Name: Emergency Broadcast System
Author: Everyone
*/
function ebs_header_message() {
echo '<div style="background:red;color:white">THIS IS BAD. COME BACK LATER</div>';
@DevinVinson
DevinVinson / designer.html
Last active August 29, 2015 14:18
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@DevinVinson
DevinVinson / gist:9266284
Created February 28, 2014 06:25
Change single product page to have right sidebar
#
# wrap single product image in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
function avia_add_image_div()
{
echo "<div class='four units single-product-main-image alpha'>";
}