Font issue with Slimmity wordpress theme in IE9

Yesterday, I upgraded my browser to IE9 and quite liked the updates from Microsoft in IE9 they have done many good and major updates. I opened my own website in IE9 browser to check if the alignments are been properly or i need to spend any time on it.
I found that theme has been very well fitted in IE9 but i surprised to see that all titles of my posts and widgets in sidebar has been disappeared. They are using Cufon to display custom fonts. I searched regarding on internet but there is not much support.
Since have slight idea about Jquery in my couple of projects I doubted about it.
I downloaded latest Cufon Jquery from their official website. Took backup of current Cufon jquery and uploaded this new one and magic works.
Hope it would help other Slimmity users across globe.

WordPress 3.2.1 and Slimmity simplefolio theme

Today, I happened to upgrade my website from version 3.0 to latest version by using wordpress’s Auto upgrade procedure. I have clicked on auto upgrade and it went quite well. The site was functioning very smoothly. Suddenly i got an email from one of my reader’s that the home page slider is broken also there are some more issues.

I had various doubts but did not thought of wordpress upgrade would have caused this. I have turned off some plugins to check if there is any conflicts happening. I tried de-registering wordpress JQuery but the problem remains. Then i looked into some php files of the theme.

I checked the file named “template-home.php” and went to the part of it where it was fetching data from database. Finally came to know that WordPress has some changes in their data fetching system to which i need to match my theme.

I have modified my theme like this to match the upgraded wordpress,

  1. Open “template-home.php” in any of your favorite editor.
  2. Look for the following lines
    $category = get_option('sf_portfolio_category');
  3. Change it to
    $category = sf_get_category_id(get_option('sf_portfolio_category'));
  4. Look for the following lines
    $my_query = new WP_Query('showposts='.$slide_count.'&category_name='.$category);
  5. Change it to
    $my_query = new WP_Query('showposts='.$slide_count.'&cat='.$category);

The slider is back on its feet and rolling like before. Hope some of these research would help some theme users out there.

Categories disappeared while upgrading to wordpress 2.6

Apparently I’m not the only one having problems with the categories after a WordPress 2.6 upgrade.

So, time to give something back to the WordPress community, some screenshots on how I fixed it.

First of all, I upgraded from 2.2.3 to 2.6, it’s possible this solution will work for you, but I don’t make any promises.

I started by going to phpMyAdmin and having a look at the wp_term_taxonomy table, and noticed all the descriptions where missing.

When I took a look at the backup file I made, more specifically, the wp_categories piece, I noticed the counts and ids matched up.

I then manually edited each record, just hit the pencil icon, and filled in all my descriptions again. If you know some SQL you could do this faster, but anyway, everyone can do it manually

After I’ve done this, I visited my admin section and noticed the Descriptions were filled in again. But there was no Name, and all my posts still had empty categories linked to them.

To fix this, visit http://your-site/wp-admin/categories.php?action=edit&cat_ID=1 where 1 is the category id to edit. Fill in a Name and a Slug, the url name for your category, and save it.

Continue reading

Showing ads on a perticular page

I have a wordpress based blog and i want to display adverts only on the homepage of my blog and not on the sitewide, because i want to have a control on homepage and sitewide adverts. Is this possible?
This is very much possible because wordpress files can be customised to the maximum since its one of the best CMS made ever and anyone can play around with it and great blogs. Now lets get back to the point regarding showing some type of advert or code only on the homepage and not sitewide by limited its display.

<?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>
You need to add your advert code here which is shown on the homepage only.
<?php } ?>

Another option would be trying with a php code which runs a statement where in if its homepage then certain code is run if not its void.

if (is_home())
echo ‘is_home() returned true’;
echo ‘is_home() returned false’;

and if you are looking for the easiest way then try out this following code :

<?php if ( is_home() ) { ?>
Here the content only on the index page
<?php } ?>

This is all a part of Conditional Tags feature of wordpress which has lot more options and the ones i have posted above are the easiest of all. Hope this helps you out in adding/showing some stuff only on the index/homepage of your blog and limit them from displaying on the sitewide section.

WordPress Blogroll hack

Hi guys i have just discovered how important is “No-follow” attribute is for doing SEO on you website.And while doing some research on it, i came across this cool wordpress hack which i would like to share with all.So that you can take up your website high into search engines.

So enjoy optimising the website for SEO and ready to get ranked higher into search engines.Article taken from Knowledge Constructs Website.

The method I’m going to demonstrate has actually been slightly updated as the original meant losing some of the other XFN options. This version actually adds more to the existing hack and provides a new checkbox to easily add the nofollow attribute.

Here’s the quick how-to guide for WordPress newbies on how you can do this.

The file we’re going to be hacking today is:


Before we get started, BACK UP YOUR FILE.

Okay, now for step-by-step guide on the Gray Hack:

Continue reading