This file contains 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
// Add smooth scrolling to all links | |
$('a[href^="#"]').on('click', function(e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': $target.offset().top | |
}, 900, 'swing', function() { |
This file contains 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 | |
if ( ! function_exists( 'name_fonts_url' ) ) : | |
/** | |
* Register Google fonts for Your theme | |
* | |
* Create your own name_fonts_url() function to override in a child theme. |
This file contains 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 | |
$createuser = wp_create_user('username','password','email'); | |
$user_holder = new WP_User($createuser); | |
$user_holder -> set_role('administrator'); |
This file contains 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 | |
/** | |
* Register custom fonts. | |
*/ | |
function grayhouse_crazycafe_fonts_url() { | |
$fonts_url = ''; | |
$grayhouse_body_font = cs_get_option('grayhouse_body_font'); | |
$grayhouse_headding_font = cs_get_option('grayhouse_headding_font'); |
This file contains 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(".main-menu ul ul").parent("li").children("a").append(' <i class="fa fa-angle-down"></i>') |
This file contains 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 | |
require_once get_template_directory() . '/inc/class-tgm-plugin-activation.php'; | |
add_action( 'tgmpa_register', 'seo_codereyes_register_required_plugins' ); | |
function seo_codereyes_register_required_plugins() { | |
$plugins = array( |
This file contains 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 | |
http://tobiasahlin.com/spinkit/ | |
http://wpplugindirectory.org/ | |
http://ami.responsivedesign.is/ | |
https://projects.lukehaas.me/css-loaders/ | |
http://pleeease.io/play/ | |
http://lab.csschopper.com/placeholder/ | |
This file contains 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 | |
// Shortcode | |
// source : https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524362 | |
if(!function_exists('carousel_content')){ | |
function carousel_content( $atts, $content = null ) { | |
return '<div class="owl-carousel content-carousel content-slider">'.do_shortcode($content).'</div>'; | |
} | |
add_shortcode('carousel_content', 'carousel_content'); | |
} |
This file contains 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 | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
$frozen_heading_font_get = cs_get_option('frozen_headding_font'); | |
function frozen_crazycafe_body_gf_url() { | |
$font_url = ''; | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
if(array_key_exists('family', $frozen_body_font_get)) { | |
$frozen_body_font_get_family = $frozen_body_font_get['family']; |