31 comments found

ch25atx Purchased

Is there any way to remove the “Leave a Reply” from the bottom of pages/posts?

templatesquare

please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

Hi all,

If you have purchased this theme and need support, please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

We will answer support request via email.

thanks

hmmeyer Purchased

Hi,

I like to add an translation file to this theme. Is there a special folder where the theme is looking for the .po/.mo files (e.g. /languages in the themes folder)? Moreover is a .pot file needed?

If you already have a .po file for the current translation (english), can you provide it as a template for other languages?

I am planning to do the german translation for this theme …when it is done I can send it to you (in case of need for other users asking for that).

Greetings, Andreas

hmmeyer Purchased

Localization of the theme

Because I needed a localized version of the theme I dived a bit deeper into the refection code to make it work. Here comes my walkthrough .. maybe this is useful for other users ;). To localize all parts of the theme you have to do some work at different places. First I want to note that I use the Wordpress CodeStyling Localization plugin from Heiko Rabe (http://wordpress.org/extend/plugins/codestyling-localization/). It is a great tool for manageing the translations via Admin Interface. If you prefer to use a external editor (e.g. poEdit) for the .po and .mo file generation it works mostly the same way.

1. Things you can translate in the Admin Interface:

You can change only a few things directly in the Admin Interface:

1.1 Go to Options->TS Display and change the “Read More Text” property.

1.2 If you are using the Yoast Breadcrumbs plugin that comes with the reflection theme go to Options->Breadcrumbs and change the text properties.

1.3 If you are using the PageNavi plugin as well, go to Options->PageNavi and change the text properties.

1.4 If you use the EasyContact Plugin …. Options->Contact …

2. Preparing the theme

FIRST : make a backup of all the php-files you will change!!

2.1 Just add a new dirctory inside the theme directory (“reflection”) and name it “languages” (you can choose another name/location, but that is a nice wordpress covention). If you work with an external editor for the language files: this is the place where you place your .po and .mo files. You a free to add an .pot (Portable Object Template) but it is not necessary. If you work with the CodeStyling Localization plugin: just add an empty .po file for your language here … so the plugin locate this file and use that directory to manage all other translation here as well. Keep in mind that the CodeStyling Localization plugin supports only languages having the country specifier included such xx_XX (e.g. de_DE.po). If you feel uneasy to start with an empty .po file use the .po file from the Twenty Ten theme that comes with wordpress and get rid of the “msgid” and the “msgstr” entries.

2.2 To make sure that the CodeStyling Localization plugin will recordnize the theme in it’s translation list, you have to add a code-fragment to the reflection\includes\theme-init.php file. Open the file for editing and add the following inside the body of the function “ts_setup” (you can find this function at line 7):

load_theme_textdomain( 'templatesquare', TEMPLATEPATH . '/languages' );

The text domain of the reflection theme is “templatesquare” (don’t change that). If you use a different directory-location then “languages” please change that.

After you updated the php file (or uploaded it again via FTP if you work with a local copy) the CodeStyling Localization plugin will list the reflection theme.

2.3 Add some important Translations: the reflection theme is well prepared for localization (using ”__” and “_e” for most if the strings) but two important part are still hard-coded (I guess the developer just missed to localize that via gettext, maybe it will be done with an coming update of the theme): - The word “search” in the main search box next to the main menu. To change that open the reflection\header.php file and go to line 187. Find:

<input name="s" class="inputbox" value="Search" type="text" onfocus="if (this.value == 'Search') {this.value = ''; }" onblur="if (this.value == ''){this.value = 'Search'; }" />

and change it to:

<input name="s" class="inputbox" value="&lt;?php _e('Search','templatesquare'); ?&gt;" type="text" onfocus="if (this.value == '&lt;?php _e('Search','templatesquare'); ?&gt;') {this.value = ''; }" onblur="if (this.value == ''){this.value = '&lt;?php _e('Search','templatesquare'); ?&gt;'; }" />

Please not that the message post filter of this site converts ”<?” to “&lt;?” and ”?>” to “?&gt;:-|. So please change that if you copy&paste the code

- the “Latest Posts / Recent Comments” box on the homepage of the theme. To change that open the reflection\hometab.php file an go to line 5. Find:

<li><a href="#tab1">Latest Posts</a></li> <li class="nomargin"><a href="#tab2">Recent Comments</a></li>

and change it to:

<li><a href="#tab1">&lt;?php _e('Latest Posts','templatesquare'); ?&gt;</a></li> <li class="nomargin"><a href="#tab2">&lt;?php _e('Recent Comments ','templatesquare'); ?&gt;</a></li>

Please not that the message post filter of this site converts ”<?” to “&lt;?” and ”?>” to “?&gt;:-|. So please change that if you copy&paste the code

go to line 38 and find: <li>No Comments Yet</li>

change it to:

<li>'._e('No Comments Yet','templatesquare').'</li>

After those updates these parts are accessible via CodeStyling Localization plugin (and any other tools for generating .po/.mo files) as well.

3. Do the localization (with the CodeStyling Localization plugin)

Now back in the WP Admin Interface go to Manage->Localization and find the reflection theme entry. If you already placed an empty .po file in the language folder you can see this language entry here. If not just add a new language (for more information about working with the CodeStyling Localization plugin, look here: http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en). Keep in mind that you have to “Rescan” the language file before you start working on the translations. After finishing that don’t forget to press the button “generate mo-file” ;).

4. Enjoy your localized theme

After you generated the .mo file update your website page and check if all translations work for you. You can add as many translations as you like that way. Especially if you use the wordpress multisite feature to have different versions of your website.

I hope that will help other uses to localize the great reflection theme.

Greetings, Andreas

templatesquare

Hi,

Thanks for the info, if you still have problems please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

thanks

Hi everyone, and great job on this theme templatesquare! 2 questions, and I’m hoping someone out there can help me.

1) How do I switch the sidebar to be on the LEFT side?

and

2) How do I turn off the “Leave A Comment” area on the PAGES ?

Thanks very much! Chris

templatesquare

To disable comments please read our FAQ at please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

If you still have any problems please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

Love this theme but having some problems – I only have 12 sliders set up but it’s showing a 13slider image/error.

Also – I have a lot of tags so the blog page (currently main page) is messy, I’d like to get rid of all the info and lengthen the except…

Hi all,

If you have purchased this theme and need support, please send a message to me via my profile page http://themeforest.net/user/templatesquare including your questions/problems, your site url and theme name.

We will answer support request via email.

thanks

Just wanted to say thank you for all your help and answering all my questions, your support is fantastic!

John

klusty Purchased

I just bought the Reflection template. I am having trouble uploading a logo in place of the Reflection logo. I made my on logo so it is image based (I aved it as a png file). I also can’t get the favicon to work. Any suggestions?

I have bought around 10 of your previous themes, and want to purchase this one but the demo will not load!!!!!!!!!!!!!!!!!!!!!

templatesquare

Hi, the demo is working now… please check again…

thanks

afanwebs Purchased

Is this theme compatible with WordPress 3.6? Is there still support for this theme?

Default-user

anything?

templatesquare

Yes, this theme should compatible with latest wordpress version… if you have found an issue please send via http://www.templatesquare.com/tf-support/

by
by
by
by
by
by