This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ------------------------------------------------------- | |
You can add your custom functions below | |
-------------------------------------------------------- */ | |
/*-------------------------------------------------------- | |
Custom VCard Widget | |
--------------------------------------------------------*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cr_custom_header_titles() { | |
if ( is_single() ) { ?> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
<?php } else { ?> | |
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __('%s', 'crum'), the_title_attribute('echo=0') ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> | |
<?php } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _remove_meta_from_posts() { | |
remove_action('reactor_post_header', 'reactor_do_post_header_meta', 3); | |
} | |
add_action( 'init', '_remove_meta_from_posts', 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_before_header_bar() | |
{ | |
if (is_home() || is_front_page()) { | |
?> | |
<div class="row"> | |
<div class="large-12 small-12 columns"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Stunning header | |
* in header.php | |
* | |
* @since 1.0.0 | |
*/ | |
function frontpage_st_header () | |
{ | |
if (is_page_template('page-templates/fullwidth-page.php') ): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom shortcode on all pages | |
* in header.php | |
* | |
* @since 1.0.0 | |
*/ | |
function shortcode_after_header () | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.menu-primary-navigation ul li { | |
position: static !important; | |
} | |
.menu-primary-navigation a { | |
position: relative !important;} | |
.menu-primary-navigation ul.dropdown li ul.dropdown { | |
top: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) { | |
var target = jQuery(this.hash); | |
target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
var top_offset = '100'; | |
jQuery('html,body').animate({ | |
scrollTop: target.offset().top - top_offset |