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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L] |
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
<form action="/search.html" id="cse-search-box"> | |
<input type="hidden" name="cx" value="partner-pub-xxx:xxx" /> | |
<input type="hidden" name="cof" value="FORID:10" /> | |
<input type="hidden" name="ie" value="UTF-8" /> | |
<input type="text" name="q" placeholder="Поиск по сайту..." /> | |
</form> |
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
/** | |
* Отключаем srcset и sizes для картинок в WordPress | |
*/ | |
// Отменяем srcset | |
// выходим на раннем этапе, этот фильтр лучше чем 'wp_calculate_image_srcset' | |
add_filter('wp_calculate_image_srcset_meta', '__return_null' ); | |
// Отменяем sizes - это поздний фильтр, но раннего как для srcset пока нет... | |
add_filter('wp_calculate_image_sizes', '__return_false', 99 ); |
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
humburger |
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
User-agent: Yandex | |
Allow: /wp-content/themes/НАЗВАНИЕ_МЕТЫ/ | |
Disallow: /cgi-bin/ | |
Disallow: /wp-admin/ | |
Disallow: /wp-includes/ | |
Disallow: /wp-content/plugins/ | |
Disallow: /wp-content/cache/ | |
Disallow: /wp-json/ | |
Disallow: /wp-content/languages/ | |
Disallow: /wp-content/upgrade/ |
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 | |
/*----------------------------------— | |
* Редирект на страницу благодарности | |
------------------------------------*/ | |
add_action('wp_footer', 'redirect_sendmail'); #назвине функции | |
function redirect_sendmail() { #назвине функции |
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
/* Small Devices, Tablets */ | |
@media only screen and (max-width : 768px) { | |
.animated { | |
/*CSS transitions*/ | |
-o-transition-property: none !important; | |
-moz-transition-property: none !important; | |
-ms-transition-property: none !important; | |
-webkit-transition-property: none !important; | |
transition-property: none !important; | |
/*CSS transforms*/ |
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 | |
$recepient = "akkord_87@mail.ru"; | |
$sitename = "el-case.ru"; | |
$name = trim($_POST["name"]); | |
$phone = trim($_POST["phone"]); | |
$email = trim($_POST["email"]); | |
$msg = trim($_POST["massage"]); |
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
// Подключаем Magnific Popup по стандарту и для открытия модального окна на определенную страницу добавляем HTML | |
$(window).load(function() { | |
setTimeout(function() { | |
$.magnificPopup.open({ | |
items: {src: '#popup-form'},type: 'inline' | |
}); |
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
# SSL: 301 redirect to https from http | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] | |
</IfModule> |
NewerOlder