Own theme
If you are using your own theme, no need to worry about, because /languages
folder is in your control that way. 🙂
Other’s theme
But your concern is about other’s theme and you want to apply your translations into that theme, then the best way is to make a Child Theme. Because you are actually modifying that theme. Make your languages files and put them into your child theme’s /languages/
folder, and that’s all.
If the parent theme is already translation-ready, it’ll catch everything. But if it’s not, then make a functions.php
and show the translation-files’ path:
load_theme_textdomain( 'theme-textdomain', get_stylesheet_directory() . '/languages' );
Note the get_stylesheet_directory()
here, it’s because we are showing the active theme’s path. 🙂
Related Posts:
- variables in translatable text
- How to translate a string that contains a WordPress sitename
- load language file
- Override parent theme translation on child theme
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- What is meant by __(‘page’,’twentytwelve’)
- Override parent theme translation on child theme
- How to tell a theme to use different .mo and .po files?
- Find proper “text domain” within theme
- How to configure PoEdit to pick up translation string?
- Translated my theme (translation not showing up)
- Inconsistent translation on a WP site
- How to put a Worpdpress theme in spanish (having the po file)?
- translation does not work for ‘Home’
- Translation not working after editing plugin template
- Where do I find (free) fully-internationalized themes? [closed]
- WordPress Baskerville 2 translation
- .PO file is found but I don’t see translations: how to debug the problem?
- Unable to find translations in WordPress theme
- How can I change the prev / next buttons text to Dutch?
- Theme Translation?
- Theme translates the_author_posts_link. How can I remove their translation?
- Theme translation not working
- How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?
- Menu names not getting translated
- When translating not all string are present in POedit
- Display Today’s date outside the loop?
- My theme is not translated
- Using OOP in themes
- How can I allow the Editor Role to change Theme Settings?
- Best way to include Bootstrap in WordPress
- How to get a translated string from a language other than the current one?
- Localization: I want the backend: english and frontend in defined language
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Editing Links in the Footer of WordPress Themes with Base64 Encrypted Code?
- register_theme_directory and broken deploys
- switch a theme different per user role
- How to create child theme with Tesseract theme?
- Register theme customizer settings when theme activates [duplicate]
- Can I obtain differents links for different installed theme?
- hfeed CSS class in Twentyeleven Theme
- Which is the most well coded and semantically correct naked/blank WordPress theme (based on WordPress coding standards)?
- How to change the themes “Live Preview” url within the Appearance->Themes page?
- How do I apply my CSS to a theme page?
- How do you get thumbnails to show up in the admin edit post?
- How to get the post-ID in my plugin?
- Localization: Textdomain of Child teme
- Parallax WordPress theme without hardcoding – possible?
- Embedded Videos (PB) – Not Available
- Recommended Themes for a Developer-related Topics Blog?
- none of my css is working in my child theme
- Finding wordpress file in theme editor using the theme name
- Activate Child Theme .mo and .po files
- Displaying a widget in sidebar only when no other widgets rendered?
- Upgrading from 2.9.4 to 3.0.x and with a custom theme
- Search form not finding content in template page
- Files empty after moving with FTP
- Easy export/import of data for Translation
- How to use one theme for multiple WordPress sites?
- Make multiple pages and set template/content on theme activation?
- Need to edit themes HTML code
- Newbie wordpress question re banner height
- How to add custom JS file in WordPress Child theme with get_theme_file_uri
- Adding the jQuery to my theme that already exists in WordPress?
- Interpretation and explanation of register sidebar
- Removing the references to the wp-content folder
- Cannot update a file for my theme
- Custom fields not displaying on front end
- remove theme’s name from dashboard .. How?
- how to stop a gallery slideshow
- Change “published by”
- Theme seems to be preventing me from adding a new page to my site
- WordPress margin issues
- 12 column grid layout
- Remove style id inline CSS in WordPress
- How to find file that placed a line in my header
- Where to find child themes?
- dynamic image path within a javascript file
- how to create a section inside a section with theme options customizer
- Warning: call_user_func() expects parameter 1 to be a valid callback
- Changing themes on locally hosted webpages
- Changing admin Textarea to integrated WP editor
- Line break no working on theme
- What is the template file for topic layouts in bbPress?
- Style of a theme
- Orion theme (from theme forest) [closed]
- QA/Staging envirnoment for wordpress sites
- Showing wordpress theme demo at front end
- Diagnosing a connection reset problem
- Customising a theme
- Blog shows up without Theme/CSS styles
- Boldy theme – Regarding the images above the boxes
- Symbolic Links for themes – linking one theme to many wordpress installs
- Fatal error: Call to undefined function get_header() and BuddyPress [closed]
- A problem with functions.php file on my WordPress site
- hardened wordpress linux install
- which theme is this? [closed]
- JQuery Error in theme for .live is not a function [closed]
- Using AJAX to Update WordPress Theme
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)