Past below code snippet right before loop and change category ID!
Leave a CommentYear: 2016
JavaScript performance is becoming increasingly important, it is good to know basic instrumentation techniques. One of the basic instrumentation tool is console.time and console.timeEnd. console.time()…
Leave a CommentIn this post, I would like to show you a very trivial example, which will help you to find the version of the bash that…
Leave a CommentjQuery make it easy to preload images in the background so visitors won’t have to wait forever when they would like to display an image.…
Leave a Comment$(‘.btn’).hover(function(){ $(this).addClass(‘hover’); }, function(){ $(this).removeClass(‘hover’); } );
Leave a CommentOccasionally we have times when we have broken image links on our website and replacing them one by one isn’t easy, so adding this simple…
Leave a Comment//here we have one php variable //In javascript/jQuery
Leave a Commentif(!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’) { /* This is one ajax call }
Leave a Commentvar sometext = “here is more HTML”; $(“p#text1”).append(sometext); // added after $(“p#text1”).prepend(sometext); // added before
Leave a Commentvar maxheight = 0; $(“div.col”).each(function(){ if($(this).height() > maxheight) { maxheight = $(this).height(); } }); $(“div.col”).height(maxheight);
Leave a Comment$(“a[href=’#top’]”).click(function() { $(“html, body”).animate({ scrollTop: 0 }, “slow”); return false; });
Leave a Comment$(“a”).on(“click”, function(e){ e.preventDefault(); });
Leave a CommentIn this post, you will find practical examples showing how to install and use the zip command to compact and organize files within your file…
Leave a CommentWithing the loop – it will display the post tags $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo ”.$tag->name .’ ‘; }…
Leave a CommentAccording to the conditional comment this is not IE 5-9
Leave a Comment