Archive | Tips

20 December 2010 ~ Comments Off

Using Poedit to Translate

With Ocean Themes almost ready to be beta tested i’m also needing to have it translated into several languages. With that in mind I will be using Poedit to create my catalog of strings to translate and the default file to translate from.

Poedit is so easy to use, but it doesn’t have an option to save as “.pot” extension. After testing the application and getting my settings all done, I managed to find an easy turnaround.

You can create a pot file from a po file by doing the following steps:

  1. Create your catalog and save it as “.po” file.
  2. Do not translate any strings yet.
  3. Duplicate your saved “.po” file and change the extension of the duplicate to “.pot”.
  4. Now you can use this file as “pot” file to update the catalog or create a new catalog from this pot file.

But now your wondering, how do you update your pot file’s catalog? Simply change the extension back to “.po”. Then re-open it with Poedit, update the catalog from sources, save it and change back the extension to “.pot”.

That’s it!

Continue Reading

16 July 2010 ~ 2 Comments

Removing Default Robots in WordPress

For those who use WordPress as their CMS for their Portfolio like me and have in their theme header the meta tags customised, robot values are more than likely to be one of them.

But there is a little problem with that. Even though you have manually written your robot meta tag, WordPress will still automatically load the default header action.

So when you look in your source code, you will find that there are 2 meta tags for robots whether you have your site visible to search engines or not. This is a problem for search engines because it will not know which one to acknowledge.

I have found a solution to that problem. After searching through the WordPress files, I found all the ‘add_action’ functions for the header.

One of them is bound to be for the meta tag, robot and this is what I found out. Many of the ‘add_action’ functions have additional array at the end with a number 1.

So to remove that action, would have to be the exact opposite leaving the number as it is. So to remove WordPress automatic robot tag simple add this to your theme functions.php file.

remove_action('wp_head', 'noindex', 1);

That’s it. Now you only have your customised manual meta tags. I have found this function to be very usefull.

In any theme created a user can now add their custom meta tag for robots in the header.php file something like this.

<?php if(is_archive()){ ?><meta name="robots" content="noindex, noarchive"> <?php }else{ ?><meta name="robots" content="all,index,follow" /> <?php } ?>

Continue Reading

Tags:

03 November 2009 ~ Comments Off

Windows 7 Themes Directory

If your are wondering where the location of the installed themes is then look no further.

Simply type in your Run command box, this line.

%userprofile%\AppData\Local\Microsoft\Windows\Themes

Want to download more themes to install? Then go to http://windows.microsoft.com/en-gb/windows/downloads/personalize?T1=themes

Continue Reading

Tags:
One of 338 websites proudly supporting Earth Hour.    Use WordPress? Get the plugin.
Performance Optimization WordPress Plugins by W3 EDGE