December 28, 2024
1 min read
Essential Code Snippet For Web Developers

With this code we will get a height of a div and use that height in another place. And the height value will change automatically based time intervale.

Custom.js
setInterval(function () {
   var topp = $('.header_area').outerHeight() - 50;
   console.log(topp);
           
   $('#header_paddig').css('height', topp);
}, 2000);

Leave a Reply

Your email address will not be published. Required fields are marked *

JS set interval for an event until element show

Sometimes we need to active an event when a specific element loads on-page or part of an element change.

Create a new WordPress administrator via functions.php & FTP

Sometimes, you might need to create an administrator account in WordPress without being able to access the admin dashboard. This could be because you have lost access to your site’s admin panel or when troubleshooting a client’s website. In this tutorial, we will show you how to programmatically add a WordPress administrator account using the […]

ACF

Easy ACF repeater Bootstrap accordion in WordPress

FAQ collapse design with ACF repeater Bootstrap accordion

Enable Leverage browser caching & Compression

To speed up your website and get good score, Enable Leverage browser caching & Compression

Web Development Project in mind?

if you looking for a web developer for paid contribution to your project I am available for work.

Mukto
Mukto

Click the button below to chat with me.