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 echo do_shortcode('[contact-form 1 "Form"]'); ?> |
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> | |
<span>Hello</span> | |
</div> | |
$('div').wrap().parent().html(); |
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
/** | |
* Media: Larger than | |
*/ | |
@media (min-width: 1200px){ | |
} | |
@media (min-width: 992px){ | |
} | |
@media (min-width: 768px){ |
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
UPDATE wp_posts SET post_content = replace(post_content, 'http://old/', 'http://new/'); | |
UPDATE wp_posts SET guid = replace(guid, 'http://old/', 'http://new/'); |
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="container-fluid"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="container"> | |
<div class="row"> | |
<!-- Content columns --> | |
<div class="col-lg-12"> | |
<!-- Content --> | |
</div> | |
</div> |
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
.full-height { height: 100vh; } |
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
@media screen and (min-width: 780px) { | |
.dropdown:hover .dropdown-menu { display: block; } /* enable hover dropdown */ | |
} |
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
/** | |
* Anchor with fade | |
* Example: <a href="#example-1"/> <div id="example-2"/> | |
*/ | |
$('a.scroll-smooth').on('click',function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); |
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 number_format(number, decimals, dec_point, thousands_sep) { | |
var number = (number + '').replace(/[^0-9+\-Ee.]/g, ''); | |
var n = !isFinite(+number) ? 0 : +number, | |
prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), | |
sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep, | |
dec = (typeof dec_point === 'undefined') ? '.' : dec_point, | |
s = '', | |
toFixedFix = function (n, prec) { | |
var k = Math.pow(10, prec); | |
return '' + (Math.round(n * k) / k).toFixed(prec); |