How to Check If an Element is in Viewport in Javascript

As a web developer, you may have come across a scenario where you want to determine whether an element is visible within the viewport of a web page. This is useful for triggering certain events or actions when an element comes into view, such as lazy loading images or animating elements as they enter the …

Add Media To Library in WordPress Through Code

<?php if (!defined(ABSPATH)) { $pagePath = explode(‘/wp-content/’, dirname(__FILE__)); include_once(str_replace(‘wp-content/’, ”, $pagePath[0] . ‘/wp-load.php’)); } $wordpress_upload_dir = wp_upload_dir(); // $wordpress_upload_dir[‘path’] is the full server path to wp-content/uploads/2017/05, for multisite works good as well // $wordpress_upload_dir[‘url’] the absolute URL to the same folder, actually we do not need it, just to show the link to file $i …

WordPress Query Loop and its Usage

By default WordPress allows you to categorize your content. This functionality is extremely powerful and allows you to have full control of your content. Using this recipe will allow you to find all posts (custom or pages) that are in the same category. This will allow you to build recommended reading sections, customize your archive …

What is Search Engine Optimisation (SEO) ?

SEO- Search Engine Optimization. Over the last ten years SE’s (Search Engines) have become an ever increasing important factor in business promotion. The four major SE’s generate in excess of 700 million search queries a day, an outstanding fact that really emphasizes the importance of utilizing the potential reach of the Search Engine. Over 75% …