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
https://codeforgeek.com/2014/12/add-google-recaptcha-wordpress/ |
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
var fixmeTop = $('.element-fixed'); | |
if (fixmeTop.length) { | |
var fixmeTopLength = fixmeTop.offset().top; // get initial position of the element | |
} | |
$(window).scroll(function() { // assign scroll event listener | |
var currentScroll = $(window).scrollTop(); // get current position | |
if (currentScroll >= fixmeTopLength) { // apply position: fixed if you | |
$('.element-fixed').css({ // scroll to that element or below it | |
'position': 'fixed', | |
'top': '137px', |
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
<IfModule mod_deflate.c> | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent env=!dont-vary | |
</IfModule> | |
AddType x-font/otf .otf | |
AddType x-font/ttf .ttf | |
AddType x-font/eot .eot | |
AddType x-font/woff .woff |
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
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: #F4F4F4 !important; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #F4F4F4 !important; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #F4F4F4 !important; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ |
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
function custom_excerpt_length( $length ) { | |
return 30; // limit znakóœ | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
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
$('a[href*=\\#]').on('click', function(e){ | |
e.preventDefault(); | |
$('html, body').animate({ | |
scrollTop : $(this.hash).offset().top | |
}, 500); | |
}); |
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 $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); ?> | |
<div class="img-container" style="background-image: url('<?php echo $backgroundImg[0]; ?>');"></div> |
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
find . -name *-*x*.jpg | xargs rm -f |
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() { | |
/* Every time the window is scrolled ... */ | |
$(window).scroll( function(){ | |
/* Check the location of each desired element */ | |
$('.hideme').each( function(i){ | |
var bottom_of_object = $(this).offset().top + $(this).outerHeight(); | |
var bottom_of_window = $(window).scrollTop() + $(window).height(); | |
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
<a href="#test">Kliknij tutaj</a> | |
<ul id="test" class="accordion-steps"> | |
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 1888 dla wózków i spacerówek dziecięcych;</li> | |
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 716 dla łóżeczek turystycznych;</li> | |
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 12227 dla kojców;</li> | |
</ul> | |
<style> | |
.accordion-steps:target { | |
display: block; |