Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Jenya476

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Jenya476 / scrolling
Created Dec 18, 2016
Кастомизация скроллинга
View scrolling
::-webkit-scrollbar-button {
::-webkit-scrollbar-track {
Jenya476 / jQyery Form Ajax
Created Nov 30, 2016
Аякс отправка форм
View jQyery Form Ajax
//Аякс отправка форм
$("#form, #form2").submit(function(e) {
type: "POST",
url: "mail.php",
data: $(this).serialize()
}).done(function() {
alert("Спасибо за заявку!");
View parallax-translate3d.js
$(window).scroll(function() {
var st = $(this).scrollTop() /10;
"transform" : "translate3d(0px, " + st + "%, .01px)",
"-webkit-transform" : "translate3d(0px, " + st + "%, .01px)"
Jenya476 / functions.php
Created Nov 13, 2016
WordPress functions.php Must Have
View functions.php
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
Jenya476 / background responsive
Last active Nov 13, 2016
Фоновое изображение
View background responsive
background-color: transparent;
background-image: url(img/1.jpg);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
height: 100vh;
position: relative;
View WordPress Get Category name By label
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
Jenya476 / WordPress query_posts
Created Nov 13, 2016
Вывод поста в WP
View WordPress query_posts
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
Jenya476 / WordPress Get Custom Field
Last active Nov 13, 2016
Вывод кастомного поля в WP
View WordPress Get Custom Field
<?php echo get_post_meta($post->ID, 'year', true); ?>
You can’t perform that action at this time.