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
$("img").attr({ | |
"width": "100%", | |
"height": "auto" | |
}); |
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
/* insert this in wp-config.php */ | |
define('FS_METHOD','direct'); |
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
Put this in your functions.php | |
function catch_that_image() { | |
global $post, $posts; | |
$first_img = ''; | |
ob_start(); | |
ob_end_clean(); | |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); | |
$first_img = $matches [1] [0]; |
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
<script> | |
setInterval(function(){ | |
var container = document.getElementById('anim'); | |
var tmp = container.innerHTML; | |
container.innerHTML= tmp; | |
}, 9000 // length of the whole show in milliseconds | |
); | |
</script> |
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
if($.trim($(".secMenu").text()) == "") { | |
$(".secMenu").remove(); | |
} |
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
setTimeout(function(){ | |
if ($(".contentHeader").find("img").length > 0) { | |
$(".content").css("padding","15px 0"); | |
} else { | |
$(".contentHeader").css("padding","0"); | |
} | |
},100); |
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($){ | |
$(document).ready(function(){ | |
$("div").each(function () { | |
// var this is the current element's DOM object | |
if (this.innerHTML.indexOf("CōV") != -1) { | |
//$(this).addClass('cov'); | |
$(this).html( | |
$(this).html().replace(/(\")?(CōV)(?!\")/gi, function ($0, $1) { | |
return $1 ? $0 : '<span class="cov">CōV</span>'; | |
}) |
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
.mainContent .left ul, .mainContent .right ul.bulletPointsList { | |
display: table; | |
margin: 0px; | |
padding: 0px; | |
} | |
.mainContent .left ul > li, .mainContent .right ul.bulletPointsList > li { | |
display: table-row; | |
margin: 0px; | |
padding-left: 0px; |
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 scroll_pos = 0; | |
$(document).scroll(function() { | |
scroll_pos = $(this).scrollTop(); | |
if(scroll_pos > 210) { | |
$(".navbar-default").css({"background-color": "black" , "padding-top" : 0}); | |
} else { | |
$(".navbar-default").css({"background-color" : "transparent" , "padding-top" : "30px"}); | |
} | |
}); |
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
$post_id = 23; | |
$queried_post = get_post($post_id); | |
$title = $queried_post->post_title; | |
echo '<p class="jumboTitle">'; | |
echo $title; | |
echo '</p>'; | |
echo $queried_post->post_content; | |
//https://www.tipsandtricks-hq.com/query-or-show-a-specific-post-in-wordpress-php-code-example-44 |