When we are using CSS @font-face for WordPress, we usually don’t get the desired result that we may be expecting while we are using Mozilla Firefox.

Firefox 3.5 supported TrueType and OpenType fonts. In Firefox 3.6 support for a new font format – the Web Open Font Format, or WOFF is been added. You can use this font format to work for WordPress if you are using Firefox.

You can convert you fonts to woff format from http://www.fontsquirrel.com/fontface/generator

After you get your font coverted use the following code to import your fonts for all browsers.

@font-face {
  font-family: GentiumTest;
  src: url(fonts/GenR102.woff) format("woff"),
       url(fonts/GenR102.ttf) format("truetype"),
       url(fonts/GenR102.eot) format("embedded opentype");

Continue reading »

Tagged with:

Fix WordPress search form (x)html validation errors

On September 14, 2010, in Web, by Bikas

A common problem with wordpress blogs or sites is that while validating the site we get validation error for the search form used in the site.

The error is for <form role=”search” method=”get” id=”searchform” action=”http://xadd..>..</form> where the validator does not validates role=”search”.

The step by step method to fix this issue is mentioned below:

  1. Login to your site through any ftp client where the wordpress site is installed.
  2. Search for the general-template.php file. It will be in the folder wp-includes.
  3. Open the file and search for the code $form = ‘<form role=”search” method=”get” id=”searchform” action=”‘ . home_url( ‘/’ ) . ‘” >
  4. Remove role=”search”, save the file and upload the file.

The search box will still work fine without any error. The positive thing is that you will not get any validation error due to your search form.

Update WordPress Blog Location

On August 15, 2010, in Web, by Bikas

If your Blog is made on WordPress platform and you want to change the location/ URL of the Blog, which may be due to reasons like: your have built the site on your system locally using the localhost in your URL; or your blog is already hosted with different domain name and now you want to host it with some other domain name, this article may be of some use to you fellows. Just follow the few simple steps mentioned below.

  1. First of all logon to your Blog’s database through PhpMyAdmin control.
  2. Then select your Blog’s database. You will find 15-16 tables under it using the prefix “wp_”.
  3. Now you need to pass some queries for some of the tables; to be precise you need to pass some queries for three tables which are mentioned below:

First update wp_options table:

To update WordPress options with the new blog location, first select the wp_options table on the left panel. Then select “SQL” on the right panelA� and pass the below mentioned query in the textbox for the query and click go to pass the query.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

your old domain will be http://localhost/your_blog if you have built the site locally on your system.

Second update wp_posts table: This will fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as absolute URLs, so we need to change them with the following SQL query:

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');

Lastly update wp_posts table:
This will fix the URL links which you have used to link posts or pages internally within the posts you have published, which we will change using the following SQL query:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Now re-login to your wp-administration to update the cookies and also check your blog and post if they are working properly.

Tagged with:

E-Commerce Developer Required

On July 25, 2010, in Vacancies, by Bikas

Should have an experience of at least 2 years in developing e-commerce sites using open sources like Magento, Zen Cart or similar frame work. Should have good communication skills as the job requires to take requirements from the client if need.

Skills Required:

  1. Strong knowledge of open source e-commerce framework like Magento, Zen Cart, etc.
  2. Working with open source CMS like WordPress, Joomla, Typo3, etc. will be a plus.
  3. Knowledge of PHP is must
  4. Good communication skills

Salary will not be a constrain for the right candidate.

Position is in Bhubaneswar, Orissa, India.

Company Name: Systems Technology International – India. Please visit the company websites STI-World.com and STI-CS.com to know more about the company.

Interested candidates may send in their resume to nancy@sti-world.com as soon as possible.

Tagged with: