How can I add a class or id to a magento 2 homepage before the page loads? I need the page to render with the class in place, not added after it loads.

  • do you want to add on body tag ? – Pawan Jul 24 '19 at 2:29
  • Yes, ideally the html or body tag. I can add classes easily with javascript, but then there is short delay when loading and new styles I want to use flash. – logrexton Jul 24 '19 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.