Home Forums WoodMart support forum Should I / you delete the Text Domain in the WoodMart child theme?

Should I / you delete the Text Domain in the WoodMart child theme?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #671411

    markus
    Participant

    Hello,

    I run into quite a lot of problems when dealing with a previous issue related to Emails and Translation.
    https://xtemos.com/forums/topic/waitlist-email-template-not-found-does-it-need-to-go-into-the-child-theme/

    In that ticket eventually I used Loco Translate, that’s where I noticed things can become messy because the parent and child theme both used the same text domain (woodmart), which caused confusion in Loco Translate when Syncing in the .pot file. I lost all the translations (I was able to restore though).

    To prevent this, I removed the Text Domain: line in the style.css of my child theme.

    Is this the recommended approach?
    Or would you suggest keeping a different text domain like woodmart-child instead — even if the child theme has no custom PHP strings?

    Just want to confirm the best practice so this doesn’t happen again.

    You show here https://xtemos.com/docs-topic/setup-child-theme/ that the Child Theme can be just downloaded and installed. If I am not mistaken there is a built in assistent when onboarding WoodMart that auto-downloads or generates the Child Theme.

    However, I wonder if it would be best if you remove the Text Domain in the Child theme as a default measure to avoid those problems that CAN show up.

    Thanks for clarifying!

    best regards
    Markus

    #671536

    Luke Nielsen
    Keymaster

    Hello,

    Yes, you can change the Text Domain because the Child theme cannot be updated and all changes that you make in the Child theme cannot be lost.

    Let me know if you have any additional questions.

    Kind Regards

    #671668

    markus
    Participant

    Thanks for confirming

    #671672

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for reaching out.

    Should you have any more queries or need further assistance, please feel free to let us know.

    Best regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Should I / you delete the Text Domain in the WoodMart child theme?’ is closed to new replies.