
{ 0 comments }
Welcome to our professional web development blog. Here you can find some helpful stuff about web design, coding, Joomla, WordPress and more...
Posts tagged as:
WordPress Thesis Theme is shipped in English language only, but it provides also the strings to translate in a file in PO (GNU Gettext Portable Object) format.
The file is thesis.po and is located in the directory wp-content/themes/thesis of your WordPress installation. The file thesis.mo that you’ll find in the same directory is the same file but in the machine readable format.
To translate the Thesis’s strings in your own language follow these simple steps :
wp-config.php : for Italian, for example, define ('WPLANG', 'it_IT');thesis.po file using your language code (ex for Italian language in will be : it_IT.po)msgstr valuemsgfmt to create the machine readable file : msgfmt -o it_IT.mo it_IT.poit_IT.po, it_IT.mo into the wp-content/themes/thesis directoryit_IT.po, it_IT.mo into the wp-content/themes/thesis_18/lib/languages directory{ 4 comments }
This function will return the theme directory URL so you can use it in other functions:
get_bloginfo('template_directory');
Alternatively, this function will echo the theme directory URL to the browser:
bloginfo('template_directory');
So an example for an image in the themes images/headers folder would be:
<img src="<?php bloginfo('template_directory'); ?>/images/headers/image.jpg" />
{ 1 comment }