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
// WP Pagination Style | |
.pagination { | |
// block style | |
.screen-reader-text { | |
display: none; | |
} | |
.nav-links { | |
// list style | |
.page-numbers { | |
// item style |
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
* For font from other domain | |
<FilesMatch "\.(ttf|otf|eot|woff|woff2)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> |
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
## THIS REMOVES CONTACT FORM 7 BULK FROM EVERY PAGE | |
## By default, contact form 7 adds the js and css to every page | |
## in wordpress, which is bulky, so we remove it. | |
define( 'WPCF7_LOAD_JS', false ); | |
define( 'WPCF7_LOAD_CSS', false ); | |
define( 'WPCF7_AUTOP', false ); | |
/* Это всё, дальше не редактируем. Успехов! */ |
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
// Media Queries | |
function myFunction(x) { | |
if (x.matches) { // If media query matches | |
document.body.style.backgroundColor = "yellow"; | |
} else { | |
document.body.style.backgroundColor = "pink"; | |
} | |
} |
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
<!-- Fixes --> | |
<style> | |
// iOS bag fix | |
.card-header { | |
cursor: pointer; | |
} | |
</style> | |
<!-- Accordion Menu --> | |
<ul id="mMenuAccordion" class="mmenu_nav accordion"> |
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
// WhatsUp | |
https://api.whatsapp.com/send?phone=79313311325 | |
// Viber | |
viber://chat?number=+79999999999 | |
// Telegram | |
tg://resolve?domain=NAME |
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
// Dead Center Fill | |
.block { | |
position: relative; | |
height: 190px; | |
overflow: hidden; | |
.img { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); |
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
// Increasing the WordPress Memory Limit | |
define('WP_MEMORY_LIMIT', '64M'); |
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 | |
// Get phone number from ACF & clean for the link | |
$phone_number = get_field( 'tel', 33 ); | |
$clean_number = str_replace( array(' ', '-', '(', ')'), '', $phone_number ); | |
?> | |
<a href="tel:<?php echo $clean_number ?>" class="header-menu-tel-link"><?php echo $phone_number ?></a> | |
<!-- IF --> | |
<?php |
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
// Masked Input | |
jQuery(function($){ | |
$('input[type="tel"]').mask("+7 (999) 999–99–99"); | |
}); | |
// Fixed Nav | |
$(window).scroll(function(){ | |
var nav = $('#Nav'), | |
fix = $('#NavFix'), | |
scroll = $(window).scrollTop(), |
NewerOlder