Comment on WordPress Language Translation by SEO Dave.
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
Posted – Verfasst am
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
<div class="post-date"><?php echo st_lang_posted(); ?> <?php if(st_post_dates_hide()=='1'){ ?><?php echo st_lang_on(); ?> <?php the_time('F jS, Y') ?><?php } ?> <?php if(st_author_link_hide()=='1'){ ?><?php echo st_lang_by(); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a> <?php } ?><?php echo st_lang_in(); ?> <?php the_category(', ') ?> <?php edit_post_link('Edit', '| ', ''); ?></div>
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
<?php echo st_lang_posted(); ?>
the category link is
<?php the_category(', ') ?>
If you didn’t want the link delete the above.
The old date code is
<?php the_time('F jS, Y') ?>
the next update code will be
<?php echo esc_attr( get_the_date() ); ?>
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.
<div class="post-date"><?php echo st_lang_posted(); ?> <?php if(st_post_dates_hide()=='1'){ ?><?php echo st_lang_on(); ?> <?php echo esc_attr( get_the_date() ); ?><?php } ?> <?php if(st_author_link_hide()=='1'){ ?><?php echo st_lang_by(); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a> <?php } ?> <?php edit_post_link('Edit', '| ', ''); ?></div>
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
More Comments by SEO Dave
WordPress Language Localization
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 …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
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 …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
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
the_time('F jS, Y')
There are around 20 files to …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
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 …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
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 …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Search Form Image Text
The Search text is part of the image, it’s this image so you would have to create a new image with Spanish text or not use the Search form within the header area.
The image is located at
/stallion-seo-theme/images/delicate/search.gif
In the next …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Default WordPress Widgets
You HAVE to add a widget to remove the default widgets.
Go to Appearance >> Widgets
Drag and drop any widget into the currently EMPTY Left sidebar widget area.
Check the home page.
Do the same for the right sidebar.
Go try it and it …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Removing WordPress Default Widgets
Go to Appearance >> Widgets
Drag and drop any widget to the Left sidebar.
Drag and drop any widget to the Right sidebar.
Check your home page and it should all make sense. You don’t remove the default widgets one by one, they …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Theme Spanish Language Translation
To remove the “powered by Stallion WordPress SEO Theme” link go to Stallion Clickbank Options and near the bottom set “Backlink OFF”.
This won’t remove the link to your home page the “©2012 JAMON IBERICO vs JAMÓN SERRANO” part will remain.
Sounds …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
Stallion Theme Language Translations
I’m not using the standard po/mo file language translations, I use an options page for translations where a user can change pretty much all words/phrases that’s part of Stallion that a visitor sees. Used in combination with a WordPress language …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
British People and Foreign Languages!
LOL, I thought it was French :-)
That’s what you get for having an British person dealing with anything to do with languages.
Will replace the file with a French translation soon and add a Spanish translation in the next update.
David …
Continue Reading WordPress Theme Language Translation
WordPress Language Localization
WordPress Theme Language Translation
I’ve added some language translation to Stallion 6.3 which I’m working on releasing soon (this month I hope).
Easiest way to find specific text is to work offline and use a text editor like Crimson Editor (it’s free) and do a …
Continue Reading WordPress Theme Language Translation