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> | |
$(function($) { | |
/*function for placeholder select*/ | |
function selectPlaceholder(selectID){ | |
var selected = $(selectID + ' option:selected'); | |
var val = selected.val(); | |
$(selectID + ' option' ).css('color', '#2c2c2c'); | |
selected.css('color', '#AEC3ED'); | |
if (val == "") { | |
$(selectID).css('color', '#AEC3ED'); |
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
$('body').on('click', '.scths', function(event) { | |
if ($(this).hasClass('scteto')) { | |
$(".dsc").removeClass('scteto'); | |
} else { | |
$(".dsc").removeClass('scteto'); | |
$(this).addClass('scteto'); | |
} | |
}); |
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
// disable core updates | |
function remove_core_updates() { | |
global $wp_version; | |
return(object) array('last_checked' => time(), 'version_checked' => $wp_version,); | |
} |
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
<input type="text" onfocus="(this.type='date')" onblur="(this.type='text')" name="birth" value="" class="form-control wpcf7-form-control wpcf7-date wpcf7-validates-as-required wpcf7-validates-as-date" aria-required="true" aria-invalid="false" placeholder="Date of birth"> |
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
[select country "United States" "Canada" "Mexico" "United Kingdom" "-----" "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antigua and Barbuda" "Argentina" "Armenia" "Armenia" "Aruba" "Australia" "Austria" "Azerbaijan" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bonaire" "Bosnia and Herzegovina" "Botswana" "Bouvet Island (Bouvetoya)" "Brazil" "British Indian Ocean Territory (Chagos Archipelago)" "British Virgin Islands" "Brunei Darussalam" "Bulgaria" "Burkina Faso" "Burundi" "Cambodia" "Cameroon" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Christmas Island" "Cocos (Keeling) Islands" "Colombia" "Comoros" "Congo" "Congo" "Cook Islands" "Costa Rica" "Cote d'Ivoire" "Croatia" "Cuba" "Curaçao" "Cyprus" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Fal |
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 | |
if(get_field('date')) | |
{ | |
$datetime = DateTime::createFromFormat('d/m/Y', get_field('date')); | |
$fecha_dia = $datetime->format('d'); | |
$fecha_mes = $datetime->format('M'); | |
} | |
?> | |
<span><?php echo $fecha_dia; ?></span> | |
<span><?php echo $fecha_mes; ?></span> |
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
Polylang | |
Polylang Connect for Elementor |
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
textarea::-webkit-input-placeholder, input::-webkit-input-placeholder { | |
color: #fff; | |
opacity: 1; | |
transition: opacity 0.5s; | |
-webkit-transition: opacity 0.5s; | |
} | |
textarea:focus::-webkit-input-placeholder, input:focus::-webkit-input-placeholder { | |
opacity: 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> | |
var text = [ 'Direct Impact <span>Marketing</span>','<tt> </tt>Drive <span>Buyer</span> Traffic','Grass Roots<span> Advertising</span>','Advertising <span> That</span> Works']; | |
var counter = 0; | |
var elem =document.getElementById('changingtext'); | |
var f = setInterval(change, 1000); | |
function change() { | |
elem.innerHTML = text[counter]; | |
counter++; | |
if (counter >= text.length) { |
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
replace (comment) this line in wp-content/plugins/polylang/frontend/choose-lang.php file (line 185) | |
$language = $this->options['hide_default'] && ( ( isset( $_SERVER['HTTP_REFERER'] ) && in_array( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ), $this->links_model->get_hosts() ) ) || ! $this->options['browser'] ) ? | |
$this->model->get_language( $this->options['default_lang'] ) : | |
$this->get_preferred_language(); // sets the language according to browser preference or default language | |
by | |
$language = 'fa'; | |
protected function home_language() { |