Skip to content

Tag: Wordpress

How to add extra sidebar to a WordPress theme?

To begin the tutorial, extract your theme into a folder and open it to see all the files. If your theme has only one sidebar, then most probably you will NOT find a file called functions.php in your theme folder. In that case you will have to create this file yourself. Just open notepad or any other code editor to start a new file. Put this code into that file:

Problem with category slug renaming in WordPress

I had a problem. I couldn’t change the category slug in some of my categories. So I found the solution at:

The problem comes from the fact that the tags and categories are stored in the same table in the database. And the tags also have slugs. So if there is already a tag with the slug that you want to put in the category you can’t do it until you delete the tag or change it’s slug.

You just need to go to the tags table in the admin panel and change the tag slug that’s making the problem.

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 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.po
  5. copy the files it_IT.po, into the wp-content/themes/thesis directory
  6. In thesis 1.8 or later copy the files it_IT.po, 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.

WordPress Facebook like button plugin doesn’t show on category and tag pages

I’m using this one:

FaceBook Like Button Plugin for WordPress


But there in one limitation. It doesn’t show the button on the category archive view and on the tag archive view pages. Probably in some cases it is good, but in others it’s better to show it.

So in order to do this go to the plugin files and open fblike_content_filter.php

On line 12 there is:

if(     (is_front_page() && $fblike_settings_show_on_front_page == 'true') ||
 (is_single() && $fblike_settings_show_on_single_post == 'true') ||
 (is_page() && $fblike_settings_show_on_single_page == 'true') )

Add two more lines so it will become like this:

if(     (is_front_page() && $fblike_settings_show_on_front_page == 'true') ||
 (is_single() && $fblike_settings_show_on_single_post == 'true') ||
 (is_category() && $fblike_settings_show_on_front_page == 'true') ||
 (is_tag() && $fblike_settings_show_on_front_page == 'true') ||
 (is_page() && $fblike_settings_show_on_single_page == 'true') )

Additional info on the WordPress conditional tags can be found here:

Why MailChimp widget disappears from my site when I sign up?

To resolve this issue go to:

onb line 249 there is:

$this->hash_mailing_list_id($this->number) == $_COOKIE[$this->id_base . '-' . $this->number] || false == $this->ns_mc_plugin->get_mcapi()

Just delete this and write in the brackets false.

This should resolve the issue and load the widget every time.