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
$(function() { | |
var $a = $(".tabs li"); | |
$a.click(function() { | |
$a.removeClass("active"); | |
$(this).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
//remove company name | |
add_filter( 'woocommerce_checkout_fields' , 'remove_company_name' ); | |
function remove_company_name( $fields ) { | |
unset($fields['billing']['billing_company']); | |
return $fields; | |
} |
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
//defer js | |
function defer_parsing_of_js($url) | |
{ | |
if (is_admin()) return $url; | |
if (false === strpos($url, '.js')) return $url; | |
if (strpos($url, 'jquery.js')) return $url; | |
if (strpos($url, ' js-mini.js')) return $url; | |
return str_replace(' src', ' defer src', $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
<h1 id="changingtext">We Are <span>Digital </span>Marketing.</h1> |
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
.scfloatPC { | |
right: 0; | |
position: fixed; | |
top: 50%; | |
transform: translateY(-50%); | |
z-index: 999; | |
text-align: center; | |
} | |
.scfloatPC a { | |
display: block; |
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() { |
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
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
Polylang | |
Polylang Connect for Elementor |