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
Put it in function.php | |
function get_custom_cat_template($single_template) { | |
global $post; | |
if ( in_category( 'practise' )) { | |
$single_template = dirname( __FILE__ ) . '/single-practise.php'; | |
} | |
return $single_template; | |
} | |
add_filter( "single_template", "get_custom_cat_template" ) ; |
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
@function get-vw($target) | |
$vw-context: (1200 * 0.01) * 1px | |
@return ($target / $vw-context) * 1vw | |
body | |
font-size: get-vw($default-font-size) | |
h1 | |
font-size: get-vw($h1-font-size) | |
h2 | |
font-size: get-vw($h2-font-size) | |
h3 |
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
<nav> | |
<ul> | |
<li><a href="home.html">Home</a></li> | |
<li><a href="about.html">About</a></li> | |
<li><a href="services.html">Services</a></li> | |
<li><a href="products.html">Products</a></li> | |
<li><a href="jobs.html">Jobs</a></li> | |
<li><a href="contact.html">Contact</a></li> | |
<li id="x" class="x"><a href="privacy.html">Privacy</a></li> | |
</ul> |
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 if( have_rows('feedbacks') ): ?> | |
<div class="carousel_bg"> | |
<div class="container"> | |
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<?php | |
$active = 'active'; | |
$num = 0; | |
while ( have_rows('feedbacks') ) : the_row(); |
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
function my_login_logo() { ?> | |
<style type="text/css"> | |
#login h1 a, .login h1 a { | |
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/site-login-logo.png); | |
padding-bottom: 30px; | |
} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'my_login_logo' ); |
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 | |
$backup = $post; //backup current object | |
$current = $post->ID; //current page ID | |
?> | |
<?php | |
global $post; | |
$thisCat = get_the_category(); | |
$currentCategory = $thisCat[0]->cat_ID; | |
$myposts = get_posts('numberposts=2&order=DESC&orderby=ID&category=' . $currentCategory . '&exclude=' . $current); | |
foreach($myposts as $post) : |
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
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
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
// Function to change email address | |
function wpb_sender_email( $original_email_address ) { | |
return '[email protected]'; | |
} | |
// Function to change sender name | |
function wpb_sender_name( $original_email_from ) { | |
return 'Tim Smith'; | |
} |
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
<div class="carousel placeCarousel slide"> | |
<div class="carousel-inner"> | |
<div class="item active"> | |
<div class="col-xs-12 col-sm-6 col-md-4 place"> | |
<a href="#" title=""> | |
<img src="img/img01.jpg" alt="" class="img-responsive" /> | |
<span class="cover"></span> | |
<span class="name"> | |
Супермаркет <br> «KORZINKA.UZ» <br> (ориентир областная больница) | |
</span> |
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
<!-- Item slider--> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-xs-12 col-sm-12 col-md-12"> | |
<div class="carousel carousel-showmanymoveone slide" id="itemslider"> | |
<div class="carousel-inner"> | |
<div class="item active"> | |
<div class="col-xs-12 col-sm-6 col-md-2"> |