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 | |
| /** | |
| * Override Language Files for Enfold Child Theme | |
| */ | |
| function yanco_overwrite_language_file_child_theme() { | |
| $lang = get_stylesheet_directory().'/lang'; | |
| return $lang; | |
| } | |
| add_filter('ava_theme_textdomain_path', 'yanco_overwrite_language_file_child_theme'); |
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 | |
| define( 'WP_DEBUG', false ); | |
| define( 'WP_DEVELOPMENT_MODE', false ); | |
| if ( WP_DEBUG ) { | |
| define ('JETPACK_DEV_DEBUG', true ); | |
| define( 'WP_DEBUG_LOG', true ); | |
| define( 'SCRIPT_DEBUG', true ); |
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 yanco_get_lat_long( $address ){ | |
| $latlon_array = array(); | |
| $google_maps_key = 'XXXXXXXXXX'; // Remember to have a valid API key | |
| $region = 'DK'; | |
| $url = 'https://maps.google.com/maps/api/geocode/json?address=' . $address . '&sensor=false®ion=' . $region . '&key=' . $google_maps_key; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); |
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 | |
| /* | |
| * Place this file in /wp-content/theme-directory/algolia/ | |
| * to override algolias autocomplete for searches | |
| */ | |
| ?> | |
| <script type="text/html" id="tmpl-autocomplete-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
| <?php | |
| /* | |
| * Adding DNS Prefetching | |
| */ | |
| function dns_prefetch() { | |
| echo '<meta http-equiv="x-dns-prefetch-control" content="on"> | |
| <link rel="dns-prefetch" href="//fonts.googleapis.com" /> | |
| <link rel="dns-prefetch" href="//fonts.gstatic.com" /> | |
| <link rel="dns-prefetch" href="//0.gravatar.com/" /> |
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 | |
| add_filter('retrieve_password_message', 'yanco_custom_password_reset', 99, 4); | |
| function yanco_custom_password_reset($message, $key, $user_login, $user_data ) { | |
| $message = __('Someone has requested a password reset for the following account:') . "<br><br>"; | |
| $message .= network_home_url( '/' ) . "<br><br>"; | |
| $message .= sprintf(__('%s'), $user_data->user_email) . "<br><br>"; | |
| $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "<br><br>"; | |
| $message .= __('To reset your password use the link below:') . "<br><br>"; |
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 | |
| /* | |
| * Remove Zoom from WooCommerce Galleries | |
| */ | |
| add_action( 'after_setup_theme', 'yanco_after_setup_theme', 100 ); | |
| function yanco_after_setup_theme() { | |
| remove_theme_support( 'wc-product-gallery-zoom' ); | |
| } |