I want to change the CSS only for the title of My Account page.

enter image description here

I have added my custom class into the file title.phtml at the path module-theme/view/frontend/templates/html

But it affects all the page title.

How to resolve this issue?

Any help will be appreciated!

  • Use body class customer_accout as a parent and add your CSS in title class. customer_account class only available in the customer_account pages. Please confirm the body class before applying in the CSS.
    – Nits
    Oct 18, 2019 at 10:57

1 Answer 1


If you want to add CSS only for my account page title then you can add below css

.account.customer-account-index .page-title{
    /*css code write here*/
  • Thank you so much. It's works great!!
    – MagentoDev
    Oct 18, 2019 at 11:06
  • Approve my answer if this will work for you. Welcome
    – Devidas
    Oct 18, 2019 at 11:08
  • Like .account, is there any common class name for login container?
    – MagentoDev
    Oct 21, 2019 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.