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
$(document).ready(function() { | |
$("a.content__button").click(function() { | |
var elementClick = $(this).attr("href") | |
var destination = $(elementClick).offset().top; | |
jQuery("html:not(:animated),body:not(:animated)").animate({ | |
scrollTop: destination | |
}, 800); | |
return 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
// Пример записи: | |
// $maxWidth: Ширина КОНТЕЙНЕРА, без px!; | |
// Пример подключения: | |
// @include adaptiv-font(Размер текста в макете, размер текста при 320px); | |
$maxWidth: 1200; | |
@mixin adaptiv-font($pcSize, $mobSize) { | |
font-size: #{$pcSize + px}; | |
@media (max-width: #{$maxWidth + px}){ |
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
@font-face { | |
font-family: 'Axis'; | |
src: url('../../build/fonts/axis.woff') format('woff'), url('../../build/fonts/axis.woff2') format('woff2'); | |
} |
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
<link rel="shortcut icon" href="img/favicon.ico"> |
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
let pagePathName = location.pathname.split('/').slice(-1)[0]; | |
if(pagePathName == ""){ | |
pagePathName = 'index.html' | |
}; | |
console.log('pagePathName = '+ pagePathName); | |
$(`.header__menu-item a[href="${ pagePathName }"]`).addClass('header__menu-item_selected'); | |
$(`.footer__menu-item a[href="${ pagePathName }"]`).addClass('header__menu-item_selected'); |
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
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title> |
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 // Display blog posts on any page @ http://m0n.co/l | |
$temp = $wp_query; $wp_query= null; | |
$wp_query = new WP_Query(); $wp_query->query('showposts=3' . '&paged='.$paged); | |
while ($wp_query->have_posts()) : $wp_query->the_post(); | |
?> | |
//Вставте сюда код который хотите выводить на странице | |
<?php endwhile; ?> |
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
//Добавлять эти стили нужно в Внешний вид -> Настроить -> Дополнительные стили | |
img.size-auto, | |
img.size-full, | |
img.size-large, | |
img.size-medium, | |
.attachment img, | |
.widget-container img { | |
max-width: 100%; | |
height: auto; |
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
<!-- Подключаем стили в head --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"> | |
<!-- Подключаем скрипты в самый низ сайта --> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script> | |
<script>new WOW().init();</script> |
OlderNewer