ninjaBlog Setup

Professional WordPress Blog Installation Service

Archive for the 'WordPress' Category

18
Feb
2008

Transfer Your Blog Off of WordPress.com

by Ninja Jon

Blog well has put together a great guide on how to transfer your site from WordPress.com (your url would look like this: yoursite.wordpress.com) to your own domain: yoursite.com and fully hosted using your own hosting account.

Previously you ran the risk of losing your page rank and any search engine rankings an incoming link traffic, but the free report tells you how to take care of all that and move without cost in traffic or rankings:

Transfer Blog From WordPress.com to Your Own Domain

As an alternative, you can let a Ninja set it all up for you for free :)

14
Dec
2007

Put Your Stats Code into a Widget - WordPress Tip

by Ninja Jon

Have you ever thought to yourself, “I’d like to try out a new theme, but I’ve spent so much time putting custom code (counters, plugins etc) into my current theme, that it’s too much work to switch?”

This WordPress tip is designed to make it much easier to change themes, which will benefit established bloggers doing an upgrade, but especially new bloggers who are just starting out and experimenting with different looks for their blog.

One day while playing around with my site and inserting my StatCounter code into my footer, I had a thought, “What if I stuck this into a widget?”

I gave it a try and sure enough it worked, the counter kept tracking my stats. Then I tried it with Google Analytics and everything else that I had cluttering my footer.php file and they all worked.

How To Setup A Stats Widget

The process is really simple. In short, we just need to grab all the html or JavaScript code that you have added to your theme’s footer and place it into a WordPress widget.

What You Can Place in a Widget

  • Google Analytics
  • Stats and counters
  • My Blog Log tracking code
  • Hittail or similar code
  • Quantcast
  • Any other code that doesn’t actually display on your page

What Won’t Work

  • Custom php code (anywhere you see <?php ?> tags)
  • If you have AdSense in your footer, don’t move it.

Let’s get started…

Step 1 - Remove the Code from Your Footer

Go to your blog’s dashboard and navigate to Presentation / Theme Editor. Scroll down the list of files on the right hand menu and click on “Footer” (in some cases it will be called footer.php).

Search around in that file and cut out (remove) all the code snippets that you have added to it. Chances are they will use the <script> tag. I recommend putting them all into Notepad temporarily.

After they are all removed, then click “Update File” to save the footer file without your code in it.

Do step 2 right away so you don’t miss any stats.

Step 2 - Put the Code into a Widget

First you’ll need to make sure your blog has widgets available. WordPress 2.2 and later has them by default but with any previous version of WordPress, you’ll need to download and install the Widgets plugin. Or even better, upgrade your WordPress installation.

Navigate to the Presentation / Widgets page.

Drag a “Text” widget from the “Available Widgets” panel, up to one of your columns. I prefer to put in at the bottom of the right hand column. If there aren’t any Text widgets in the “Available Widgets” panel, then create a new one, in the box just below that panel.

Click the little configuration box on the right hand side of the new text widget to pop open the widget entry box.

Copy and paste all the code the you removed from your footer into the body of the box. Leave the title blank (if you put anything in there, it will show up on your page, which you don’t want).

Close the widget by clicking the “X” at the top right corner.

Click “Save Changes” to update your widget settings.

That’s it. I recommend that you take a look at your stats counter (and any other services) to make sure they are working and tracking visitors. All it takes is a missed “>” in the copy and paste process and they won’t function correctly.

Now when you want to change your theme, you don’t have to worry about forgetting to move your counter and other tracking codes.

One Small Step Towards Theme Independence

This tip will allow you to move one step closer to having theme freedom. My ultimate setup for WordPress would be to never have to add code into the theme files manually.

This would mean that if a new version of your theme is released or if you change your theme you won’t need to migrate any code.

It seems to me that more and more plugin designers are climbing on the bandwagon and creating plugins that integrate automatically into posts and pages without needing to add the code manually.

This has been just a tiny tip that can hopefully save you some headaches in the long run make blogging easier and more fun.

01
Dec
2007

How To Upload a New WordPress Theme

by Ninja Jon

One of the most common questions that I get asked is how to upload a new theme to a WordPress blog. So I’ve put together a video which demonstrated the entire process.

There are 2 things required to follow along with the video.

1) An ftp application for transferring the files of the new theme up to your blog. There are many many ftp applications. My favorite, which I demonstrate in the video is FireFTP. This is plugin for the popular FireFox browser, which I highly recommend.

Download FireFox browser
(if you don’t already have it)
Then get the FireFtp plugin here. I’ll show you how to install it in the video.

Alternatives:
Smart FTP (free for personal use)
Cyber Duck (for MAC users)

2) The new theme that you’d like to install. The best place to start looking for new themes is the WordPress theme repository.

The rest of the information you’ll need is covered in the video, included a bonus section on copying any code changes that you may have done in your old theme over to the new one.

Click the image below to start the video

13
Oct
2007

How To Edit Your WordPress Theme

by Ninja Jon

In this video I cover how to make some very basic changes to your WordPress theme.

In the first section I open up the stylesheet and change a couple formatting colors. And in the second section I open up the single.php file and show you how to add simple snippets of code that you would like to show up at the bottom of each post.

Video thumbnail. Click to play.
Click To Play

If you have any questions, leave them in the comments below.

04
Oct
2007

How To Upgrade to WordPress 2.3

by Ninja Jon

This is a step by step guide to upgrading to WordPress 2.3. This guide only takes into consideration plugins installed by Ninja Blog Setup. If you have others then you may need to upgrade or disable them if you encounter any errors.

The only plugin that causes any problems when upgrading is the Add Meta Tags plugin. The plugin has been updated now, so you can just grab the latest version and install it. As of writing this post there wasn’t a update to the plugin, but it is a very useful plugin so I have provided a file that has a patch which makes it compatible with WordPress 2.3.

Download the patched plugin, by right clicking here and saving to your desktop. Unzip the file and then using an ftp program, upload the add-meta-tags.php file up to the /plugins/ folder and overwrite the one that is already on your site.

Upgrade the Google (XML) Sitemaps plugin by de-activating the current version, and deleting it and then installing the latest version from here. The new version is needed for WordPress 2.3. NOTE: pressing the “Update” button from the plugin page is not getting the latest version, you MUST do it manually as I described above.

Deactivate the Simple Tagging & Sitemap Tags plugins as they are no longer required for WordPress 2.3 and will cause errors if kept active. You will be able to import your tags, so they won’t be lost.

Backup your entire system by going to Manage / Backup and select all the tables and perform a backup.

Run Instant Upgrade to upgrade WordPress to the latest version by going to Manage / Instant Upgrade. If the upgrade needs completion manually just follow the links.

Use this plugin (Simple Tagging Import) to import your “Simple Tagging” tags into the new WordPress tagging system. Download and install the plugin and then follow the instructions on the documentation.

Go back to your WordPress backup page to include all the tables on your weekly or daily backups. This is necessary since there are new tables from the old version and you want them all to be backed up.

Add code to your template to display the new WordPress tags. Do this by going to Presentation / Theme Editor. Open the Single Post file from the right hand menu. And then add the following line:

Tags <?php the_tags(' ', ' ', ' '); ?>

directly after this line:

<?php the_content('<p>Read the rest of this entry ยป</p>'); ?>

If you want the tags to show up on the posts on your front page, then open the Main Index Template page, and add the same code after the same line in this file.

Other Useful Links:
List of plugins that are tested okay with 2.3

For a list of themes that are tested okay with 2.3
(note, not all of these will display tags automatically, this list is just themes that don’t break when you use them on WordPress 2.3

Update: I’ve been asked to explain the code used to insert tags into a theme using the WordPress 2.3 tagging system.

Tags <?php the_tags(' ', ' ', ' '); ?>

With this code the ‘ ‘ doesn’t mean the number of tags to show. They are called parameters and the first set of ‘ ‘ is the code you would like to see before each tag. Basically if you put in ‘<br/>’ which is the code for a line break, then it will put each tag on a new line.
The middle ‘ ‘ is what you would like between each tag. So if you put this ‘ - ‘ then your tags will look like this:

Tags: one - two - three

and the last ‘ ‘ is what you want at the end of the tags. Again you could put another line break, or you could use code that would create a list of tags using ‘<li>’ at the beginning and ‘</li>’ at the end.

The results would be:

Tags:

10
Sep
2007

How To Update WordPress

by Ninja Jon

This is a video about how to upgrade WordPress using the Instant Upgrade plugin. In order to follow along you will need to have this plugin installed (it comes standard with any Ninja Blog Setup WordPress Installations).

[Note: if you don’t have the plugin installed, you can visit the Instant Upgrade project page to retrieve the latest version.]

WARNING: before doing any type of changes to your site, you should always perform a backup. The WordPress backup plugin also comes standard with all Ninja Installations, but if you don’t have it, then download and install the WordPress Database Backup plugin before you begin your upgrade.

Quite often the latest versions of WordPress are security updates and they should be performed as soon as possible.

Feed readers can view the video here.