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 *

Replace add to cart button with the product page link & Change add to cart text

`Replace add to cart button with product single linked to product page on shop pages in WooCommerce 3

How to Implement Google Ads Conversion Tracking in WooCommerce

Learn how to add Google Ads tracking code to your WooCommerce thank you page effortlessly, without the need for plugins.

JetAppointment Set lock time before more than 24 hours

Extend JetAppointment’s “Locked Time Before” booking from 24h to 30 days or more. Developer guide with PHP snippet to customize your booking buffer.

Make Specific Products Not Purchasable or Purchasable for a specific date in WooCommerce

How to make specific products not purchasable in WooCommerce using code.

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.