Skip to main content

JavaScript

Take advantage of the Upgency past, current and future updates, by learning how to create your own content without changing the core styles of Upgency.

How to create a new Javascript?

To avoid file loss, overrides of your custom styles or any other conflicts during the upgrade process, create or modify your custom javascript in src/js/theme.js file.

Custom files must be included in follwing code.

            
              const myCustom = function () {

              // insert your javascript in here

              }
            
          

Paste your javascript code after line const myCustom = function () {

Upgency Javascript

Want to remove javascript from Upgency theme.js?

Editing following code

            
              /**
   * ------------------------------------------------------------------------
   * Launch Functions
   * ------------------------------------------------------------------------
   */
   
  myJarallax();
  myAos();
  myTyped();
  myCounters();
  myIsotope_filter();
  myLightgallery();
  myLax();
  mySmooth();
  myProgress();
  myProgressBar();
  myBacktotop();
  myNavigation();
  sub_dropdown_js();
  myPricing();
  myMobile();
  myOpen();
  myPreloader();
  myBootstrap();
  myCustom();
            
          

Just delete one function from this code, example myJarallax(); or myAos(); or other part

You also can add new functions in here