By toswebdev, 20 December, 2021 if (window.location.href.indexOf("user") > 0) { $("#block-main-menu ul li:first-child").addClass( "menu-item--active-trail" ); } Tags Code Snippet jQuery Comments Your name Subject Comment About text formats All comments go through moderation, so your comment won't display immediately.
Comments