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 | |
//go to avada-functions.php for more details | |
function my_custom_head_function_for_avada() { | |
//echo "<h3>+353 98 66011</h3>"; | |
$phone_number = do_shortcode( Avada()->settings->get( 'header_number' ) ); | |
echo "<h3>" . $phone_number . "</h3>"; | |
} | |
add_filter( 'avada_logo_append', 'my_custom_head_function_for_avada' ); |
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
@font-face { | |
font-family: 'AlbondigasFree'; | |
font-style: normal; | |
font-weight: 400; | |
src: url(../custom-fonts/Albondigas.ttf),local('KeepCalm-Medium'); | |
unicode-range: U+0-2f, U+40-10FFFF; | |
} |
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
/* TypeWriter Script */ | |
jQuery(document).ready(function(e) { | |
var TxtType = function(el, toRotate, period) { | |
this.toRotate = toRotate; | |
this.el = el; | |
this.loopNum = 0; | |
this.period = parseInt(period, 10) || 2000; | |
this.txt = ''; | |
this.tick(); |
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_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'dropdown_label', 10 ); | |
function dropdown_label( $args ) { | |
$var_tax = wc_attribute_label( $args['attribute']); | |
$args['show_option_none'] = apply_filters( 'the_title', $var_tax ); | |
return $args; | |
} |
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
public function enqueue_scripts() { | |
// Empty redirect. | |
$redirect_fail = ''; | |
// Set the redirect URL. | |
$redirectOnFail = esc_url( apply_filters( 'avwp_redirect_on_fail_link', $redirect_fail ) ); | |
} |
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 | |
global $post; | |
$terms = get_the_terms( $post->ID, 'stores' ); | |
//$nterms = get_the_terms( $post->ID, 'product_tag' ); | |
foreach ($terms as $term ) { | |
$store_id = $term->term_id; | |
//$product_cat_name = $term->name; | |
break; | |
} |
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 | |
/* Show CPT Courses */ | |
// require_once WP_CONTENT_DIR . '/inc/postType.php'; | |
require get_stylesheet_directory() . '/inc/postType.php'; | |
//$course = new JW_Post_Type("course"); | |
//Create Shortcode news_flk | |
// Shortcode: [course-category cname="development-report"] |
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 | |
/**/ | |
// include vc_schema.php file in functions.php | |
require_once get_template_directory() . '/vc_schema.php'; |
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_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
# Disable WP>3.0 plugin updates | |
remove_action( 'load-update-core.php', 'wp_update_plugins' ); | |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); | |
# Disable WP>3.0 theme updates | |
remove_action( 'load-update-core.php', 'wp_update_themes' ); | |
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) ); |
OlderNewer