Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

Drupal - JS condition for frontpage and not

0 votes
added Nov 14, 2018 in Drupal by LC Marshal Captain (24,040 points)
if ($('body').hasClass('front')) {
 // do something
else {
 // do something else


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.