SyntaxFix
Write A Post
Hire A Developer
Questions
A more general approach:
if ( ($("body").hasClass("homepage") || $("body").hasClass("contact")) && (theLanguage == 'en-gb') ) { // Do something }