Home Home Translation How to move translation to Child Theme?

You will need FTP access to the WordPress site either by using FTP Client or File Manager via cPanelHow to use FTP?

 

PART 1: EDIT CHILD THEME FUNCTIONS.PHP

STEP 1: FTP into your site. (Example via cPanel or FileZilla)

cPanel is recommended as you can edit the file without downloading it locally.

STEP 2: Go to wp-content/themes/listingpro-child/

Make sure first the Child Theme is installed and active.

STEP 3: Download and Edit functions.php

If you are using cPanel, simply right-click and Edit the functions.php file.

STEP 4: Copy the code below.

function listingpr_child_lang_setup() {
 load_theme_textdomain( 'listingpro', get_stylesheet_directory() . '/languages' );
 load_child_theme_textdomain( 'listingpro-child', get_stylesheet_directory() . '/languages' );
 }
 add_action( 'after_setup_theme', 'listingpr_child_lang_setup' );

STEP 5: Paste the code into the functions.php as shown below:

Code inserted via cPanel File Manager.
Make sure when you insert the above code from STEP 4, the closing tag ?> is at the end of the file as shown above (in red circle).

STEP 6: Save the functions.php changes to the server.

 


PART 2: MOVE LANGUAGES FOLDER TO CHILD THEME

You may use Loco translate or Poedit to create or edit translation files.

Move languages folder from  wp-content/themes/listingpro/

… To Child ListingPro theme wp-content/themes/listingpro-child/

Congradulations! after completing PART 1 and PART 2 you have successfully moved the translation to Child Theme. Now all the translation you will make in Loco Translate will take effect in the child theme and after the update you will not lose the translation.

STOP HERE! DON’T PROCEED TO PART 3 WITHOUT READING THIS CAREFULLY.

The following step is ONLY FOR USERS who have updated to the latest version of ListingPro after moving the translation to the child theme.

If you have to translate strings included in the latest release of ListingPro, you must repeat these steps in PART 3 after every update.

PART 3: REPLACE OLD .POT FILE AFTER UPDATE 

In case you are unable to find the text strings to translate after updating to the latest version it’s because you still have the old .pot file which is missing the new text strings.

STEP 1: Copy the .pot file from ListingPro Parent theme (Language Folder), /wp-content/themes/listingpro/languages

STEP 2: Paste the .pot file to ListingPro Child theme (Language Folder), /wp-content/themes/listingpro-child/languages.

STEP 3: Go to WP Admin > Loco Translate > Themes > ListingPro Child

STEP 4: Select the language translation file.

STEP 5: Click Sync

STEP 6: Click Save

Now you can translate or safetly update listingpro theme. For more info see How to update ListingPro WordPress theme?
New to WordPress or ListingPro? Need help with installation or custom project? Hire an Expert!
+
antalya escort akseki escort aksu escort alanya escort bayan antalya escort antalya grup escort antalya masöz antalya rus escort antalya sınırsız escort antalya travesti escort bdsm escort beldibi escort bayan belek escort bayan çallı escort bayan çamyuva escort bayan demre escort bayan elmalı escort bayan fethiye escort bayan finike escort bayan göynük escort bayan güllük escort bayan ışıklar escort bayan kaş escort bayan kemer escort bayan konyaaltı altınkum escort bayan konyaaltı arapsuyu escort bayan konyaaltı escort bayan konyaaltı liman escort korkuteli escort bayan kültür escort kundu escort bayan lara escort bayan manavgat escort bayan muratpaşa escort bayan örnekköy escort bayan rus escort bayan serik escort bayan side escort bayan suriyeli escort tekirova escort bayan üniversiteli escort alanya escort mahmutlar escort alanya escort mahmutlar escort alanya escort mahmutlar escort istanbul escort avrupa yakası escort şişli escort topkapı escort istanbul vip escort maslak escort merter escort aksaray escort arnavutköy escort ataköy escort bağcılar escort bahçelievler escort bakırköy escort beşitaş escort beylikdüzü escort beyoğlu escort halkalı escort istanbul sınırsız escort kağıthane escort mecidiyeköy escort nişantaşı escort escort istanbul ataşehir escort beykoz escort çekmeköy escort kadıköy escort maltepe escort pendik escort sancaktepe escort şile escort sultanbeyli escort tuzla escort ümraniye escort üsküdar escort
ataşehir escort ataşehir anadolu yakası escort ankara escort antalya escort antalya escort
escort izmit kocaeli escort darıca escort gölcük escort bayan izmit sınırsız escort gemlik escort/a> bursa genc escort/a> escort aydınlı tuzla escort kızları tuzla sınırsız escort escort bursa bursa merkez escort bursa otele gelen escort escort bayan avrupa yakası escort beylikdüzü escort kocaeli escort otele gelen escort darıca escort sınırsız escort cialis cialis fiyat cialis 100 mg cialis 20 mg viagra escort ankara eryaman escort etlik escort çankaya escort kızılay escort escort şişli kurtuluş escort avrupa yakası escort şirinevler escort bayan escort bursa bursa eve gelen escort bursa ucuz escort ataşehir escort göztepe escort 19 mayıs escort acıbadem escort caddebostan escort caferaga escort erenköy escort dumlupınar escort fenerbahçe escort fikirtepe escort suadiye escort koşuyolu escort koşzyatağı escort merdivenköy escort sahrayicedit escort osmanağa escort altayçeşme escort aydınevler escort zümrütevler escort gülsuyu escort gülensu escort girne escort başıbüyük escort bağlarbaşı escort idealtepe escort fındıklı escort esenkent escort büyükbakkalköy escort küçükyalı escort escort bayan bursa şişli escort kızları taksim escort bursa eskort seks izle zenci porno izle escort ataşehir escort antalya
ankara escort maps://www.elitescorthatun.com/ad-category/istanbul-escort/umraniye-escort/" title="ümraniye escort" target="_blank">ümraniye escort mecidiyeköy escort kartal escort bahçelievler escort bahçeşehir escort ataşehir escort bakırköy escort nişantaşı escort avcılar escort büyükçekmece escort kurtkoy escort konya escort beşiktaş escort taksim escort beylikdüzü escort malatya escort sakarya escort şişli escort maltepe escort kadıköy escort ataköy escort bostancı escort şirinevler escort bağcılar escort üsküdar escort etiler escort başaksehir escort ortaköy escort kağıthane escort sultangazi escort halkalı escort çekmeköy escort şaşkınbakkal escort mamak escort sincan escort keçiören escort çankaya escort beypazarı escort akyurt escort pursaklar escort kahramankazan escort göztepe escort alsancak escort bornova escort buca escort karabaglar escort karşıyaka escort konak escort narlıdere escort izmit escort başiskele escort kandira escort körfez escort karamürsel escort dilovası escort gölcük escort gebze escort kocaeli escort kayseri escort elazığ escort denizli escort diyarbakir escort adana escort ankara escort izmir escort antalya escort gaziantep escort kayseri escort konya escort mersin escort denizli escort kocaeli escort diyarbakır escort alanya escort manavgat escort bursa escort eskişehir escort sakarya escort samsun escort malatya escort trabzon escort adıyaman escort afyon escort ağrı escort aksaray escort amasya escort ardahan escort artvin escort aydın escort balikesir escort bartın escort batman escort bayburt escort bilecik escort bingöl escort bitlis escort bolu escort burdur escort çanakkale escort çankırı escort çorum escort düzce escort edirne escort elazığ escort erzincan escort erzurum escort giresun escort gümüşhane escort hatay escort ığdır escort ısparta escort maraş escort karabük escort karaman escort kars escort kastamonu escort kilis escort kırıkkale escort kırklareli escort kırşehir escort kütahya escort manisa escort mardin escort muğla escort muş escort nevşehir escort niğde escort ordu escort osmaniye escort rize escort urfa escort siirt escort sinop escort şırnak escort sivas escort ordu escort tokat escort tunceli escort usak escort van escort yalova escort yozgat escort zonguldak escort kıbrıs escort
tahmin
ANKARA ESCORT ankara escort