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 *

Enabling Guest Checkout in WooCommerce: Bypassing Email Verification for Order Payment

Enable guest payment, bypass email verification. Enhance user experience, boost conversions. Easy, efficient, and customer-friendly solution

WordPress Next and Previous Post

WordPress Next and Previous Post navigation for custom post type and defult blog post simple php code to use single page

WordPress category or taxonomy list

WordPress custom taxonomy term list with function and loop. show taxonomy team on wp query loop

WooCommerce Discount based on Cart Item

A discount on the total order with condition based on our cart item

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.