Skip to content

DevNotes

Code is fun

Recent Posts

  • Gravity form Require login pre download
  • Hide Drop Down date with CSS
  • Gravity form hide past date & restrict min and max date
  • Gravity form Hide Past Date and Restrict days
  • Create WP users with FTP access

Recent Comments

Archives

  • August 2025
  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • June 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • October 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • January 2023
  • November 2022
  • October 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020

Categories

  • CSS
  • Database
  • Elementor
  • Gravity Form
  • HTML
  • Javascript
  • jQuery
  • JS Course
  • MAC
  • Ninja form
  • PHP
  • Plugin
  • Plugin Development
  • React
  • Uncategorized
  • VS Code
  • Vuejs
  • Woocommerce
  • WordPress
  • WPSO
  • YITH

Month: June 2022

WP theme file Cache busting

if ( site_url() == "http://domain.com" ) {
    define( "VERSION", time() );
} else {
    define( "VERSION", wp_get_theme()->get( "Version" ) );
}
function alpha_assets() {
    wp_enqueue_style( "alpha", get_stylesheet_uri(), null, VERSION 
    );
}
add_action( "wp_enqueue_scripts", "alpha_assets" );
Posted on June 25, 2022June 25, 2022Categories WordPressLeave a comment on WP theme file Cache busting

jQuery if has class then show

if ($('.client-message')[0]){
$("#message-toaster-close").css("display", "block");
Posted on June 12, 2022Categories Javascript, jQueryLeave a comment on jQuery if has class then show

Ajax load page on click

<script>

jQuery(document).ready(function($){
    $("#number").on("click", function(){
 $.ajax({
   url: 'https://gycportal.mysites.io/careers/',
   method: 'POST',
   data: {
      number: '123',
      data: 'pankaj' 
     },
   success: function(data) {
   console.log(data);
   $("#page_details").html(data);
  }
 });
});

});
</script>
Posted on June 2, 2022June 2, 2022Categories Javascript, jQueryLeave a comment on Ajax load page on click

jQuery trigger click

<script>
jQuery(document).ready(function($){
 
 $("#load-content").click(function(){
    $(".nav-gyc_dashboard").click(); 
    return false;
 });

});
</script>
Posted on June 2, 2022Categories Javascript, jQueryLeave a comment on jQuery trigger click
Proudly powered by WordPress