Sunday, October 2, 2011

Elcom CMS: Changing Related Articles Heading Text with jQuery

jQuery is included as a javascript library within the Elcom CMS.
It is very easy to learn and use, and extremely powerful, allowing you to customise existing functionality and add your own custom functionality.

As a small example, you can change the default Related Articles heading text simply by including the following jQuery script in your PostCustomJavaScript.js file:

// Change default heading text of Related Articles display.
// Here we are changing the default "Related Articles" to "Related Items"
    $('.relatedItems h2').html('Related Items').css('display','inline');