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
$('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
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
::-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
<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
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
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
$('#textarea').summernote({ | |
height: 250, //set editable area's height | |
callbacks: { // it must be like this in new version | |
onImageUpload: function(files, editor, $editable) { | |
sendFile(files[0],editor,$editable); | |
} | |
} | |
}); | |
function sendFile(file,editor,welEditable) { |
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 echo get_the_category( $post->ID )[0]->name; ?> |