Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hello,
How can we translate the words: Newer / Older, theme for WordPress?
Thank you.
Philippe
Offline
I asked this question to Matt during beta testing of the Wordpress plugin. This was his answer:
For Wordpress, all localization should be handled via Wordpress' i18n support.
The Language Files paragraph in following article provides a nice overview: https://www.smashingmagazine.com/2011/1 … uage-files.
Since the Wordpress theme directory is managed by Backlight, you will need to create a child theme where you place your language files.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thank you for the answer,
Okay, so I'll create a child theme!
Moreover, it may be best to that point I put the css code for Wordpress theme also in children.
What do you think ?
Philippe
Offline
Sorry I had not yet seen the answer to my other question.
Offline
Moreover, it may be best to that point I put the css code for Wordpress theme also in children.
What do you think ?Philippe
Yes, because I had a child theme, I put all my Wordpress styling into the child's theme style.css. Otherwise custom.css would have be sufficient.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
In order to use the child theme's style.css, I had to add following code in functions.php:
<?php
function child_theme_enqueue_styles() {
// Add local style
wp_enqueue_style('child-theme', get_stylesheet_directory_uri() .'/style.css', array('parent-theme'));
}
add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' );
?>
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
If you're building a child theme anyway, you might divide your CSS according to purpose:
* Use Custom CSS for any styling relevant to both Backlight and Wordpress.
* Use child theme CSS for any styling applying only to Wordpress.
Offline
Pages: 1