I want to add the alias to the body. I don't want to edit my template in case of template updates. So I'm going to create a plugin to overcome this issue.
So my query is... can I do this in PHP or should I just use jQuery. I know I need PHP to get the alias, and using jQuery is fine to add the class.
I'm just wondering which is the best way or if there is any downside.