Skip to content

Instantly share code, notes, and snippets.

View kharakhordindemo's full-sized avatar

Kharakhordin Artem kharakhordindemo

View GitHub Profile
@font-face {
font-family: 'test';
src: url('../fonts/test/test.woff2') format('woff2'),
url('../fonts/test/test.woff') format('woff');
}
@kharakhordindemo
kharakhordindemo / form.php
Created December 22, 2017 15:21
Remove span in Contact Form 7
/*Contact form 7 remove span*/
add_filter('wpcf7_form_elements', function($content) {
$content = preg_replace('/<(span).*?class="\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^"]+)?\s*"[^\>]*>(.*)<\/\1>/i', '\2', $content);
$content = str_replace('<br />', '', $content);
return $content;
});
@kharakhordindemo
kharakhordindemo / index.php
Created December 19, 2017 11:54
Custom Taxonomies
<?php
function art_register_taxonomy() {
$singular = 'Location';
$plural = 'Locations';
$labels = array(
'name' => $plural,
'singular_name' => $singular,
'search_items' => 'Search ' . $plural,
@kharakhordindemo
kharakhordindemo / index.php
Created December 19, 2017 09:51
Custom Post Type
<?php
/*Custom Post Type*/
function art_register_post_type() {
$singular = 'Job';
$plural = 'Jobs';
$labels = array(
'name' => $plural,
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- код сюда -->
<?php endwhile; endif; ?>
@mixin ul-reset{
margin: 0;
padding: 0;
list-style-type: none;
}
*::-webkit-input-placeholder{
color: $grey;
}
*:-moz-placeholder{
color: $grey;
}
*::-moz-placeholder{
@mixin tr($time){
transition: all $time ease;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>uniMail</title>
</head>
<body>
<form>
@kharakhordindemo
kharakhordindemo / media.css
Created December 6, 2017 15:29
Медиазапросы
@media only screen and (max-width : 1199px){
}
@media only screen and (max-width : 991px){
}
@media only screen and (max-width : 767px){