Skip to content

Tag: theme

Minimal Portfolio WordPress Theme

minimal-portfolio-wordpress-theme-preview-590-300

Featuring the new theme by us called Minimal Portfolio. It’s nice and responsive.

See DEMO of Minimal Portfolio WordPress Theme

Features:

  • Fully responsive (mobile ready);
  • Fast – no additional frameworks and plugins used in this demo;
  • Clean quality code;
  • Social media icons included in the theme;
  • Multi-browser support – tested on most browsers out there;
  • Logo uploader in the theme customizer (if no logo is uploaded you site title from the general settings will be used like in this demo);
  • Documentation, installation and usage instructions in the theme readme.txt file;
  • Easy to customize – if you are a developer you will find it very easy to customize;
  • Submenu items support included in the theme;
  • HTML5 & CSS3 ready.

Email us if you want this theme for free.

How to translate the WordPress Thesis Theme

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 :

  1. set your preferred language in the file wp-config.php : for Italian, for example, define ('WPLANG', 'it_IT');
    See these instructions WordPress in Your Language for a complete guide.
  2. rename the thesis.po file using your language code (ex for Italian language in will be : it_IT.po)
  3. open the file with the text editor of your choice and translate the strings filling the msgstr value
  4. using the command-line utility msgfmt to create the machine readable file : msgfmt -o it_IT.mo it_IT.po
  5. copy the files it_IT.po, it_IT.mo into the wp-content/themes/thesis directory
  6. In thesis 1.8 or later copy the files it_IT.po, it_IT.mo into the wp-content/themes/thesis_18/lib/languages directory
  7. There may be missing strings, so add them to the .po file with Dreamweaver or notepad and generate the .mo file with poedit.

Function to get wordpress theme URL

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" />