Skip to Content

addHelperClasses()

Adds helper classes (and other attributes) to appropriate elements.

JavaScript February 22, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

Currently this function does the following:

  • Adds rel=”nofollow external” to outbound links
  • Adds “no-icon” class to images within a tags
  • Adds “no-icon” class to child a tags whose parent also has the class.

This function used to add classes such as “last-child”, “first-child”, “odd”, and “even” to appropriate elements, but has been removed since support for old browsers who needed them has been dropped.

Source File

This function was not found in /assets/js/nebula.js. Please report this error.

Override

To override or disable this JavaScript function, simply redeclare it with the exact same function name.

JavaScript
function addHelperClasses(){
    //Write your own code here, leave it blank, or return false.
}