Skip to content

Instantly share code, notes, and snippets.

<?php
// Unhook default Crumina functions
function unhook_crumina_functions() {
remove_filter( 'woocommerce_product_tabs', 'crum_remove_product_tabs', 98 );
}
add_action( 'init', 'unhook_crumina_functions' );
@AnnaCrumina
AnnaCrumina / custom.js
Last active August 29, 2015 14:19 — forked from crumina/custom.js
jQuery(document).ready(function () {
setTimeout(function() {
if (window.location.hash) {
jQuery('.accordion dd > a').each(function () {
var current = jQuery(this).parents('.accordion');
var hash = '#' + jQuery(this).attr('href').split('#')[1];
if (hash == window.location.hash) {
current.find('dd').removeClass('active');
current.find('.content').hide();
jQuery(this).parent().addClass('active');
/**
* Stunning header
* in header.php
*
* @since 1.0.0
*/
function frontpage_st_header ()
{
if (is_page_template('page-templates/fullwidth-page.php') ):
/**
* Custom shortcode on all pages
* in header.php
*
* @since 1.0.0
*/
function shortcode_after_header ()
{