Identify my-account Overview page

To separate my-account overview page from other my-account pages add a class name as

var isOverviewPage = Backbone.history.fragment == "" || Backbone.history.fragment == "overview";

    if(isOverviewPage){
         jQuery('#site-header').addClass('myaccount-overview-header');        
        }

Leave a comment

Your email address will not be published. Required fields are marked *