The Stallion Responsive WordPress SEO Package includes built in WordPress language translation support that does NOT require creating po files for the theme or similar hard to understand features.
In a nutshell everything output by Stallion Responsive to your website visitors can easily be modified to any language on the planet on one simple to use options page. It is simple to use, under “Stallion Theme” >> “Language Options” there are less than 40 options for adding your own language translation plus some default language translations that work alongside the WordPress core language translations.
WordPress Language Localization
In WordPress 4 there’s a new feature for selecting a language during initial installation allowing easy WordPress localization, this removes the need for downloading and installing WordPress in your language like you had to do for WordPress 3.9.2 and earlier versions of WordPress: was much harder to setup localization pre WP 4.0.
For a new WordPress 4 install select one of the 40 languages WordPress 4.0 is currently localized for by default.
en = English (United States)
ar = العربية
az = Azərbaycan dili
bs = Bosanski
ca = Català
cy = Cymraeg
da_DK = Dansk
de_DE = Deutsch
en_AU = English (Australia)
en_GB = English (UK)
en_CA = English (Canada)
es_ES = Español
eu = Euskara
fa_IR = ادامه = فارسی
fi = Jatka = Suomi
fr_FR = Continuer = Français
gd = Gàidhlig
gl_ES = Galego
he_IL = עִבְרִית
hr = Hrvatski
hu_HU = Magyar
id_ID = Bahasa Indonesia
it_IT = Italiano
ja = 日本語
ko_KR = 계속 = 한국어
my_MM = ဗမာစာ
nl_NL = Nederlands
nb_NO = Norsk bokmål
pt_BR = Português do Brasil
pt_PT = Português
ru_RU = Русский
sk_SK = Slovenčina
es_CL = Español de Chile
es_PE = Español de Perú
sr_RS = Српски језик
sv_SE = Svenska
th = ไทย
tr_TR = Türkçe
zh_TW = 繁體中文
zh_CN = 简体中文
After setting up WordPress to use your language everything handled by WordPress core should be translated to your language, for example the output from default WordPress widgets like Monthly Archives, Categories, Tagcloud etc… should automatically use the localized language selected.
WordPress Theme Language Translation
WordPress core doesn’t have control over the language translation of WordPress themes and plugins. Many WordPress themes and plugins offer language translations that use a po file. This is a file generated by a program which maps parts of a theme/plugin to the po file it’s described at http://codex.wordpress.org/Translating_WordPress and it’s a PAIN to use and manage: make a small change to a plugin/theme and the po files needs rebuilding!
Stallion Responsive doesn’t use this option, Stallion includes a custom built language translation feature which makes creating a translation on the fly really easy.
The screenshot below shows the built in translations, click the screenshot to see the entire options page.
Currently (Stallion Responsive 8.1) the following languages are translated:
English : en-english.php (Defaults)
Arabic : ar-arabic.php (Google Translation)
Bengali : bn_BD-bengali.php (Google Translation)
Chinese : zh_CN-chinese.php (Google Translation)
German : de_DE-german.php (Google Translation)
French : fr_FR-french.php (Google Translation)
Hebrew : he_IL-hebrew.php (Google Translation)
Hindi : hi_IN-hindi.php (Google Translation)
Italian : it_IT-italian.php (Google Translation)
Japanese : ja-japanese.php (Google Translation)
Malay : ms_MY-Malay.php (Google Translation)
Norwegian : nn_NO-norwegian.php (User Translation)
Persian : fa_IR-persian.php (Google Translation)
Polish : pl_PL-polish.php (User Translation)
Portuguese Brazilian : pt_BR-portuguese-brazilian.php (Google Translation)
Portuguese European : pt_PT-portuguese-european.php (Google Translation)
Russian : ru_RO-russian.php (Google Translation)
Spanish : es_ES-spanish.php (User Translation)
Thai : th-thai.php (Google Translation)
Urdu : urdu-urdu.php (Google Translation)
Tick the relevant tick box on the “Stallion Theme” >> “Language Options” page and click “Save Settings” and the language selected will be used.
You will note most of the translations are Google Translations, it’s really easy to create a new translation if one of the above isn’t suitable.
WordPress Language Translator
Go to the following URL (It’s the Google Translator) and select your language on the right.
http://translate.google.com/#auto/fr/Name%0AMail%20%28not%20published%29%0AWebsite%0AComment%20Title%0A%28required%29%0ASubmit%20Comment%0AYou%20must%20be%20logged%20in%20to%20post%20a%20comment.%0ALogged%20in%20as%0ALog%20out%0A%0AYour%20comment%20is%20awaiting%20moderation.%0AThis%20post%20is%20password%20protected.%20Enter%20the%20password%20to%20view%20comments.%0AResponses%20to%0ALeave%20a%20reply%20to%0AComment%20on%0AReply%20to%20Comment%0AMore%20Comments%20by%0A%0APosted%0Aon%0Aby%0Ain%0A%0AArticles%20by%0Ais%20the%20author%20of%0Aposts.%0AWebsite%0A%0AContinue%20Reading%0ANo%20Comments%0A1%20Comment%0AComments%0A%0APage%0A%26raquo%3B%0AArchives%0ASearch%0AGo%0AAdverts%0AAdverts%0ARelated%20Articles%20to%0Apowered%20by%0AStallion%20Responsive
You now have a Google translation for all words and phrases used by Stallion Responsive that your visitors sees.
You can either add them directly to the Stallion Language Options page (copy and paste) or add them to a custom language translation file.
You’ll find the custom language file at:
"/stallion-responsive/languages/zz-custom-language.php"
You can either modify the above file or make a copy of the file into the child theme folder and modify the child theme file instead at:
"/stallion-responsive-child/languages/zz-custom-language.php"
By copying the file to the child theme folder it won’t be overwritten when you update Stallion Responsive.
Edit zz-custom-language.php in a text editor (I use Notepad++ it’s free) and you’ll find full instructions within.
Creating a Language Translation
It’s really easy to modify, you’ll find lines of code like these (there’s only 38 words/phrases to translate the entire SEO package):
$st_options10[‘st_lang_comname’] = ‘Name’; # Name
$st_options10[‘st_lang_commail’] = ‘Mail (not published)’; # Mail (not published)
$st_options10[‘st_lang_comweb’] = ‘Website’; # Website
To convert to French for example you would change to the French translation:
$st_options10[‘st_lang_comname’] = ‘nom’; # Name
$st_options10[‘st_lang_commail’] = ‘Mail (non publié)’; # Mail (not published)
$st_options10[‘st_lang_comweb’] = ‘site Web’; # Website
If you want your translation included into Stallion Responsive send me a copy of your modified zz-custom-language.php file and I’ll add it to the next update. I’m your typical ignorant British person, I only understand English fluently, so be sure to let me know which language you translated as I won’t know which it is :-)
David
WordPress Theme Language Translations
Have been adding more language translation files to Stallion using Google Translations.
These are the current language translations that will be available in Stallion v7.1 (plan to release this month).
English : en-english.php (Defaults)
Arabic : ar-arabic.php (Google Translation)
Bengali : bn_BD-bengali.php (Google Translation)
Chinese : zh_CN-chinese.php (Google Translation)
German : de_DE-german.php (Google Translation)
French : fr_FR-french.php (Google Translation)
Hebrew : he_IL-hebrew.php (Google Translation)
Hindi : hi_IN-hindi.php (Google Translation)
Italian : it_IT-italian.php (Google Translation)
Japanese : ja-japanese.php (Google Translation)
Malay : ms_MY-Malay.php (Google Translation)
Norwegian : nn_NO-norwegian.php (User Translation)
Persian : fa_IR-persian.php (Google Translation)
Polish : pl_PL-polish.php (User Translation)
Portuguese Brazilian : pt_BR-portuguese-brazilian.php (Google Translation)
Portuguese European : pt_PT-portuguese-european.php (Google Translation)
Russian : ru_RO-russian.php (Google Translation)
Spanish : es_ES-spanish.php (User Translation)
Thai : th-thai.php (Google Translation)
Urdu : urdu-urdu.php (Google Translation)
Custom Language : zz-custom-language.php
I’m using Google Translator for the basic translations using this URL
## https://translate.google.com/#auto|en|Name%0AMail%20%28not%20published%29%0AWebsite%0AComment%20Title%0A%28required%29%0ASubmit%20Comment%0AYou%20must%20be%20logged%20in%20to%20post%20a%20comment.%0ALogged%20in%20as%0ALog%20out%0A%0A%0AYour%20comment%20is%20awaiting%20moderation.%0AThis%20post%20is%20password%20protected.%20Enter%20the%20password%20to%20view%20comments.%0AResponses%20to%0ALeave%20a%20reply%20to%0AComment%20on%0AReply%20to%20Comment%0AMore%20Comments%20by%0A%0A%0APosted%0Aon%0Aby%0Ain%0A%0A%0AArticles%20by%0Ais%20the%20author%20of%0Aposts.%0AWebsite%0A%0A%0AContinue%20Reading%0ANo%20Comments%0A1%20Comment%0AComments%0A%0A%0AArchives%0ASearch%0AGo%0ARelated%20Searches%0ARelated%20Products%0AAdverts%0ARelated%20Articles%20to%0Apowered%20by%0A%0AEND
If there’s a Google translation on the above page you’d like to see as part of Stallion let me know.
The Google translations will not be perfect, I’m hoping those who use the language files and adapt them will send me a copy so I can include it with the next Stallion release.
All you have to do is after Stallion 7.1 is released is look in the folder
for the relevant file, fa_IR-persian.php for example for the Persian translation.
Edit the file in a text editor using carachter encoding UTF-8, make the changes to improve the translation, it should be obvious what to change.
Save the file and email a copy to me.
David
WordPress Theme Language Translations
WordPress Theme Branding
Howdy,
I’ve just about spent some two hours reading about your theme, here and on some despicable site where I admired your skilled courtesy. The more I read, the more I want to buy:
– branding: will I be allowed to remove the branding (credit line, “powered by…” etc)?
– style: will there be more inbuilt styling options? Please forgive me, but the design really is a tad outdated.
one more question: how does your theme work on a German language site?
Thanks for your help!
WordPress Theme Branding
Stallion Theme Colour Schemes and Languages
If you look at the home page of this site and scroll to the heading “Stallion Theme Colour Schemes” you’ll find example links to the current 27 built in Stallion colour schemes. The ability to use a different colour scheme on each post is a Stallion feature BTW.
Because Stallion is BIG (almost 10MB zip file) I’ve no plans to add more colour schemes, images sets etc… directly into main Stallion, the zip file size is already causing issues with some users having to change their sites maximum file upload size to above 10MB or use FTP to install (greatest number of support requests I receive!!).
The plan is to push new colour schemes and image sets to Stallion Child Themes. There’s a free example child theme at Stallion Child Theme Information.
I added child theme support this month, so a new feature, not many child themes made yet. WordPress child themes are cool, it’s like installing two themes at the same time and they work together. A Stallion child theme can add to main Stallion (like adding new colour schemes, image sets etc…) and/or be used to add/edit features. If someone with average CSS skills wanted a layout with a 600px sidebar that can be achieved by creating a copy of a single CSS file with not that many changes.
Stallion has advanced language support for what your visitors see, all Stallion options pages are in English only (your visitors don’t see them). There are currently 20 languages available within Stallion and if a user can translate these phrases
Name
Mail (not published)
Website
Comment Title
(required)
Submit Comment
You must be logged in to post a comment.
Logged in as
Log out
Your comment is awaiting moderation.
This post is password protected. Enter the password to view comments.
Responses to
Leave a reply to
Comment on
Reply to Comment
More Comments by
Posted
on
by
in
Articles by
is the author of
posts.
Website
Continue Reading
No Comments
1 Comment
Comments
Archives
Search
Go
Related Searches
Related Products
Adverts
Related Articles to
powered by
Stallion WordPress SEO Theme
Stallion can be easily translated to any language in two ways.
1. Directly on the Language options page, each of the above phrases are an option, go to the Stallion Language Options page and type whatever the translation is and save the options page.
2. Via a language file, there’s 21 files including the custom file for any language currently not built in (can add more language files in future updates). The text below is copied from the Stallion Language Options page-
Use Current Settings
English : en-english.php (Defaults)
Arabic : ar-arabic.php (Google Translation)
Bengali : bn_BD-bengali.php (Google Translation)
Chinese : zh_CN-chinese.php (Google Translation)
German : de_DE-german.php (Google Translation)
French : fr_FR-french.php (Google Translation)
Hebrew : he_IL-hebrew.php (Google Translation)
Hindi : hi_IN-hindi.php (Google Translation)
Italian : it_IT-italian.php (Google Translation)
Japanese : ja-japanese.php (Google Translation)
Malay : ms_MY-Malay.php (Google Translation)
Norwegian : nn_NO-norwegian.php (User Translation)
Persian : fa_IR-persian.php (Google Translation)
Polish : pl_PL-polish.php (User Translation)
Portuguese Brazilian : pt_BR-portuguese-brazilian.php (Google Translation)
Portuguese European : pt_PT-portuguese-european.php (Google Translation)
Russian : ru_RO-russian.php (Google Translation)
Spanish : es_ES-spanish.php (User Translation)
Thai : th-thai.php (Google Translation)
Urdu : urdu-urdu.php (Google Translation)
Custom Language : zz-custom-language.php
In the theme directory you will find a folder /stallion-seo-theme/languages/ with files en-english.php, de-german.php etc… and zz-custom.php which include the above Stallion options in various languages. zz-custom.php includes the default English settings which can be edited to your needs. If you do edit a file I suggest installing a child theme (can be the free example child theme) and put the file in the child theme folder so when Stallion updates your edits won’t be lost.
Each file has a tick box, tick German for example, click save and all the options are changed to the settings in the de_DE-german.php file.
You can see above most of the translations are Google Translations, if you make a better German translation happy to include it in the next update. The de_DE-german.php file can be edited like a text file and looks like this:
$st_options10[‘st_lang_comweb’] = ‘Webseite’; # Website
$st_options10[‘st_lang_comtitle’] = ‘Geben Sie Ihre Meinung Titel’; # Comment Title
Pretty straight forward what to change if you want the settings in the file and not manually added via the options page (if you don’t want to edit the file you could use the Google translation version and edit the translations that aren’t accurate).
If you’ve installed the German version of WordPress and all your articles are in German the entire site should be in German: I have no control over default widgets, so if the German version of WordPress doesn’t have a translation it will be in English (I’d assume German will be fully translated).
The Stallion powered by link can be either turned into a Clickbank affiliate link (so any purchase via your link you get 50% of the price of Stallion) or disable it completely via the Stallion Clickbank Options page (2 clicks of the mouse it’s gone).
Stallion is built on hundreds of options, I doubt any other theme has so many parts of a theme that can be turned on/off.
David
Stallion Theme Colour Schemes and Languages
WordPress Theme Date Format
Apart from some Google translator mistakes in the translation for German
(which I will fix as soon as I have enough content to check on the messages – German grammar is not always in agreement with Google translation)
there’s a glitch in the display of dates:
When I use the default English settings with the date on pages and posts on:
+++ Example 1 [dates on]+++
“New Produkt – must have!”
Posted on Juni 29th, 2012 in Promo/Sales
+++ +++ +++ +++ +++
I can turn of the post date (Stallion Feature?), and it is no longer displayed.
The post then will look something similar to this:
+++ Example 2 [dates off]+++
“New Produkt – must have!”
Posted in ‘promo/sales’
+++ +++ +++ +++ +++
This is all very fine and works as expected.
Now I turn dates on and set the language to German:
+++ Example 3 [dates on] [language DE] +++
“New Produkt – must have!”
Verfasst am auf Juni 29th, 2012 in ‘Promo/Sales’
+++ +++ +++ +++ +++
(“Verfasst am” = “Posted on”)
The “auf”-part is simply wrong (like “… sitting here at on the table …”
When now I turn the dates off
+++ Example 4 [dates OFF] [language DE] +++
“New Produkt – must have!”
Verfasst am in ‘Promo/Sales’
+++ +++ +++ +++ +++
The date duly disappears (with the wrong “auf”-part), but the text label “Verfasst am” is still there :o
So how do I get rid of that? I will live with dates on my pages (something I don’t really fancy) but it hss to be the correct form – everything else is simply not professional.
And somehow the date format always is “May 5th, 2012”. Germans use “5. May 2012” thus walking from the smallest unit to the next bigger one. Of course, I’ve got the WordPress date settings right and I do use the German version of WordPress.
And one more: how can I turn of the display of the category “posted in “Promo/Sales”?
Thanks!
delta
WordPress Theme Date Format
WordPress Date Format
The language date issue is why I broke the translations for the Date Meta words into individual words rather than phrases so the original English words (Posted, on, by, in) can be changed one word at a time. The German Translation (Google translation) has converted
If it should be only Verfasst delete the “am” on the Language Options page.
If any of the others are wrong change them as well, if in or by etc… doesn’t work for a language add a space so nothing is shown. They are broken into single words to allow for as many formats as possible.
It’s a tricky one because there’s so many different formats for different languages, I think the current Stallion language options allows for a decent translation to most languages without too much difficulty. Also what you are seeing is version 1 of this Stallion feature, so far had no reports of it not being workable for a particular language, if it needs adapting happy to make the changes.
On the date format that’s core WordPress, Settings >> General there’s date and time formats on that page. Unfortunately I didn’t realise (until now) I’m using old code for the date and the option above has no impact, will fix this in the next Stallion update. If you must have the feature now see later about Page templates etc…
If you want to remove the “Posted in Category”, the “posted in” is within the language options, replace it with a blank space. To remove the category link you’d have to edit template files or create a template, there are category templates and post/page templates. Page templates are a core WordPress feature, this has been extended in Stallion so you have Category templates and the Page templates also work in Posts. Enable these templates under “Stallion Layouts : Custom Templates ON”. Only post type not covered is Tags and dated archives (for SEO reasons don’t use dated archives).
This is where child themes are awesome. If you want this change sitewide for posts without having to set a Page template for every Post/Page easiest way would be to copy the single.php file from /stallion-seo-theme/ folder to the child theme folder. Any files copied there basically are loaded instead of the file in the main Stallion folder.
Edit the single.php file (in your child theme) and edit the category link code, while there you can update the date code that I’ll be updating next update, this is the current (Stallion 7.1.1) code
You might even be able to figure this out yourself, the code isn’t that complicated, st_lang_posted is the language Posted word, (anything starting st_lang is Stallion language relevant), if you wanted it removed you’d delete it
the category link is
If you didn’t want the link delete the above.
The old date code is
the next update code will be
this new code will use the Settings >> General options.
For example this would result in Posted on Date (new format) by author (if author link turned on) and the Edit link when logged in.
If you wanted to use a Page template instead copy the page-example.php file from the main Stallion folder instead of single.php and rename it to something like page-fixeddate.php edit the file and rename the top from “Template Name: Example Default” to something like “Template Name: Fixed Date”.
Edit the file as described above.
This will add a new Page template to your Page and Post edit screens that can be selected as needed. That’s how you make a custom Page template, dead easy.
The benefit of a Page template over editing the original templates (like single.php)is why I update Stallion your single.php file will be used rather than the new single.php (assuming I’ve made changes to the file). With a Page template it will always be available without locking you out of new updates.
There’s also Category templates, same concept, but they work on categories rather than Posts and Pages, the example file for editing is category-example.php or you can copy over the category.php file to the child theme and edit the same way as editing the single.php file.
BTW single.php is for blog Posts, page.php is for static Pages, if you want the date changes on static Pages as well you’d repeat the changes in page.php.
David
WordPress Date Format
Best WordPress Theme Support
David :)
Your support is exemplary: fast and to the point. There’s always enough surrounding information to get a general grasp of the situation, and precise directions to get the job done.
I expected your answer not before Monday – but since I got your reply already Saturday afternoon (!) I’ve been on it. With your dedicated help I managed to adjust the date format, even move the date and the cat below the post where I find it sits perfectly, and I adjusted the translation by simple overwriting the English language file – thus avoiding translation glitches. (I’ll be working on the proper way soon – promised!)
I will not be back before Monday – so please: enjoy your weekend, you’ve certainly made it possible for me to relax now.
Thank you very much!
delta
Best WordPress Theme Support
Change WordPress Date Format
As promised – I’m back.
# item: correct date format and position for front page excerpts
The issue (date, position) is now solved for the single post page, but it remains the very same for the front page. I need to have the date fixed there too and would like to move those data also BELOW the post excerpt just above the “Continue reading”
Which template do I have to change?
# item: front page slider
Is there any way to get rid of the border around the slider?
# item proper German language file
I still need to see more to provide one working fully in all circumstances. And the language settings proof resistant to instant change. I need to clear the cache, which sometimes helps, but usually I have to “save” a browser for checking on new settings, which after having used up all my “very first” sessions with a browser, won’t change til the next reboot – what am I missing?
Thank you
delta
ps notification seems to work now :D
Change WordPress Date Format
Editing WordPress Theme Template Files
If you want every instance of a bit of code use a txt editor like Crimson Editor (it’s free) and use a find in files facility for the code, you’d be looking for
There are around 20 files to edit if you want this change sitewide, they’ll be changed in Stallion 7.2 which I’ve not officially started work on yet (always have a working copy I edit as I go along with bug fixes, new features etc…) and have no time frame for release: hate doing small updates, like to make them worthwhile so add lots of new stuff before considering a release (unless it’s a serious bug fix then it’s ASAP).
The code is pretty much the same for each file, so whatever you did for single.php should work with those.
The border around the slider will be CSS code, edit the relevant layout-****.css file for the layout you are using (found under /colors/) and edit-
If you wanted this change for all layouts edit all the 12 layout files.
Try CTRL F5 to clear your cache. If using a cache plugin clear the cache and it should work, if not use multiple browers, I have FireFox, IE, Chrome, Safari, Opera so when I think the cache isn’t clearing check it in another browser.
If you are making these changes directly within the main Stallion theme folder and not a child theme remember NOT to use the auto update because all your changes will be overwrote. If a child theme they’ll be fine, but take into account when editing core files this way when I do an update the main Stallion files will be ignored, so you might miss out on feature updates and bug fixes.
The date change above is 20+ files, that’s almost all the core WordPress template files for main content and the Page templates, I can pretty much guarantee they will change between most updates, same with css files, new features almost always require a bit of CSS tweaking.
Next update for example I’ll be including a fix for the Google Translation widget CSS that messes with the gradient colour schemes, basically Google’s CSS code is overriding the gradient CSS resulting in the colour gradients not going from the top of the site to the bottom, it instead stops and restarts at the bottom of the browser window. The fix involved adding a new div around the entire site which is used to reference the gradient CSS code, before the gradient CSS was applied to the body tag in 7.2 to the new div. This ‘breaks’ the WordPress core background colour settings because the body tag is filled with the new div (no space for the background image to show) so have to play around with that code before release so the background image is the background of the new div instead of the body. While looking into this found an interesting plugin that adds the ability to add backgrounds to various parts of the page, so thinking about adding it to Stallion (doesn’t work with Stallion out the box, but an interesting feature possibly worth looking into).
As you can appreciate I don’t support older code (not going to explain how to upgrade a modified 7.1 file to work correctly in 7.2 etc…), so whatever changes you make you should keep a basic record so you know how to make the same changes in a new version. More changes you make, more you have to check to do a upgrade correctly,made this mistake myself when editing scripts, end up in a scenario where you realistically can’t update!
David
Editing WordPress Theme Template Files
WordPress Custom CSS File
Thanks for your help!
#st_feature
instead of changing it throughout all the files, it is much easier to include a separate css-file with the necessary changes. Thus you only need to include it again after your updates :) (btw: border gone :D )
As for the language: of course I use several browsers, all of the above except Safari but I also use K-Meleon. And even after clearing the cache, or changing to an “unused” browser not all the changes show up. Since my work around (translating the en-file) presently works, it is not on top of my list. (But I’ll get to it later)
I hear you about changing the core files. You’re right, I will keep the changes to a bare minimum, always using the child theme, and keeping track of my changes. So far I’m not afraid of your next update: one css file and one php file – a doddle.
ps if you’re in free editors, give “Komodo Edit” a look. It works both under Windows and Linux (Mac???)
WordPress Custom CSS File
Add Inline CSS to WordPress
If you are happy with inline CSS (I try to avoid it, personal pet peeve) use the “Stallion All In One SEO Additional Sitewide Headers” (that’s a mouthful :-)).
Under Stallion Advanced SEO tick “Stallion All in One SEO ON” this turns on the Stallion All In One SEO options page that will be available after another page loads (go to your Dashboard for example and check the Stallion Theme menu for the new link).
Under the Stallion All In One Options page at the bottom are 4 boxes related to adding info to the header area. The “Additional Sitewide Headers” will load the code on every page of the site except Page templates that have their own header code: I think there’s one built in Page template that doesn’t use the header.php code where the additional header code is loaded, if you build your own Page template that doesn’t use the header.php file remember to replicate anything you add below there as well.
You have two choices that will avoid editing the Stallion core CSS files and avoid upgrade problems I mentioned before.
Add inline css code, this would override the CSS of the core Stallion CSS files
If you aren’t familiar with CSS the last CSS code loaded is basically what’s shown, so if you have three ways the above sort of code is loaded the first has border 10px, second 50px and the last 0px it’s the 0px that’s used. which means you can override most CSS in a core CSS file by copying it to the header above or a separate css file (see below).
Or create a css file like mycustom.css add it to your Child theme folder and reference it as follows changing the URL to yours:
and add the css you changed in the main files in this file.
Both these options will remove the need for making the changes again after a Stallion update, though you’ll still have to keep an eye on them for conflicts with new features.
It’s on my list of features to add to create a more user friendly way of doing the above.
After you change a language file are you reloading it on the Stallion Language options page?
The settings within the language files are not used on the fly to generate the languages, when you tick a language and save the options the file is read and the settings are added to the database at the time you click the save button. If you change the file and don’t select the file again and save options again the current database settings remain the same. The files are like backups of the language options database, run a file and the new entries are added. Basically a quick way to add a particular set of options, I use the same format on the main Stallion options page for the default SEO settings etc… near the bottom. The language files only holds the language options, the SEO defaults holds all settings.
David
Add Inline CSS to WordPress
WordPress Khmer Language Translation
I like your new version so much. Then it would be much better for those who check from Android or other small mobile devices.
Could you help tell me where I can change the font from English to Khmer language. I have found the discussion about changing the font already but I just don’t know were I should add/place it….this is the link: http://www.wpquestions.com/question/show/id/3000
I have also added the .mo file for my site already and it just appears the change somehow. Please help advice me ! I am so naive with webdesign….Thank you,
WordPress Khmer Language Translation
WordPress Language Translation
I’ve not converted WordPress core to another language translation, so not the best person to ask. Here http://codex.wordpress.org/WordPress_in_Your_Language is where I’d start. If you search Google for : WordPress Language Translation Khmer there’s some guides.
When you have WordPress core converted Stallion includes built in support for converting the Stallion English text (what your visitors see in a browser) on the Stallion Language Options page: there’s not a Stallion Khmer translation, though it’s easy to achieve. Basically two choices, change the English words to Khmer on the Stallion Language Options page or create a Stallion Language file (edit the file /stallion-seo-theme/languages/zz-custom-language.php) that includes those words and select the custom language to install what you added to the file.
You can convert most of a site (what your visitors see in a browser, not you when logged into your Dashboard) just using Stallion. Ideally you would convert WordPress core as well since some text that’s output for default widgets is handled by WordPress core, though if you avoid some widgets you can get very close to full conversion just using Stallion if converting core is too difficult.
David
WordPress Language Translation
Language Translation
Hmmm. It seems difficult for me…
I have no idea how to change it now… :(