Posts by date

Plugin Installation

Posted by The Doctor on Dec 30, 2009 with 14 Comments | Short Link
Last modified by The Doctor on March 17, 2010
in Tips
as , , , ,

To install a WordPress plugin is in most cases fairly straight forward but if you have never installed one before the first time can be a bit awkward. Lets install two plugins with these step-by-step instructions.

First, you will need to be logged into your administration pages. This should be a familiar process. Remember this?

The typical WordPress login form

Next, on the left hand side of your screen you should see your administration pages menu. It will looks very much like this.

The admin. menu

To install a new plugin there are essentially two methods that can be done from these administration pages. Both methods make use of the menu at the top of the “Install Plugins” page. Here is a screen snippet of the page:

A screen snippet of the Install Plugins page. Click to enlarge. Click back to return.

Let’s look at the upload method first. This method only works for plugins you have downloaded to your local computer. Click on the upload link at the top of the Install Plugins page and you should see something like this on your screen:

Click on the Browse button to open the file browser for your computer.

Next, locate the plugin zip file on your local computer. In this example we will use a modified version of the Facebook Sharecount plugin by Snowball Factory, Inc. Your screen may look something like this:

An example of locating a plugin zip file

Click the “Open” button (see example image above). This will populate the field on the Install Plugins page under uploads. Click the “Install Now” button. The next step is activating the plugin which we will look at in a moment, after going through the steps to use the “Search” method(s). The “Featured”, “Popular”, “Newest”, and “Recently Updated” options are simply pre-configured special “Search” criteria. Here is a screen snippet:

Large Image. The results for searching on the term: Support. Click to enlarge. Click back to return.

Locate the plugin you are interested in using, for this example we will look at the BNS Support plugin. The plugin name itself will link to the page the plugin author has designated, the link to the far right will start the installation process. Clicking on the “install” link will open a pop-up style interface, very similar if not identical to this one:

The install now pop-up window

Clicking the big red “Install Now” button will display a screen with information like this:

After the plugin is installed it needs to be activated.

An example of the Manage Plugins page after plugin activation.

Some plugins offer functionality simply with their activation, for example the BNS Login plugin, other plugins require they are placed in a widget area of the theme. To add a plugin to one of these widget areas, you will need to click on Appearance, then click on Widgets; and, the Available Widgets page should be displayed. It will have a similar look to this example:

Large Image. An example of possible available widgets. Click to enlarge. Click back to return.

To use the plugin, drag-and-drop its title bar into an open widget area. Widget areas are theme dependent. If the widget area you want to use is not “open” first click on the small triangle on the right side of the widget area title. Now you can drag-and-drop the plugin title bar there. As you drag the plugin into the widget area, an outline of the plugin title bar will appear showing the plugin can be dropped. Once the plugin has been dropped into a widget area, if it exists, the plugin option menu will pop open. Similar to these next screen snippets:

A plugin being dragged into a widget area.

Once dropped, the plugin will pop open its option menu.

Some plugins have full pages to manage their options, either in addition or as their only method of control. This is more common for plugins that do not need or have use of being placed in a widget area. These option pages are generally placed in the admin menu at the author’s discretion. The most common area to find the plugin settings page is under … Settings, as this example shows:

A common place to find plugin settings pages is under the admin Settings.

Now you can return to your home page and see your newly installed, and configured, plugin. Congratulations!

Keep Check Mark in Checkbox

Posted by The Doctor on Dec 19, 2009 with 3 Comments | Short Link
Last modified by The Doctor on March 17, 2010
in Tips
as , , ,

Something I have come across recently in several plugins (mine included) was the checkbox in the option panel not staying checked!

The option itself was being maintained; the plugins are working according to expectations; but, the visual check mark in the box was not there. This can be become frustrating and annoying. A fix was needed. Here is it, in the form of a generic snippet:

<p>
	<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['do_something'], true ); ?> id="<?php echo $this->get_field_id( 'do_something' ); ?>" name="<?php echo $this->get_field_name( 'do_something' ); ?>" />
	<label for="<?php echo $this->get_field_id( 'do_something' ); ?>"><?php _e('Display the Do Something action?'); ?></label>
</p>

The key is the (bool) in the checked() function. If it does not exist the checkbox will not maintain the visual check mark correctly.

Change the WordPress Tagline

Posted by The Doctor on Dec 13, 2009 with No Comments | Short Link
Last modified by The Doctor on March 17, 2010
in Tips
as , , ,

I have noticed on many blogs the description usually found under the blog title is:

Just another WordPress weblog

This may be the case, or it may not, but for the most part this tagline can be customized to better suit the blog itself. It is just a matter of making a change in the Settings of the blog; and, it is this easy:

  1. Log into your Dashboard (admin pages)
  2. Click on the Settings option, which defaults to display the General Settings
  3. Beside “Tagline”, in the box, type what you want your new blog description to be
  4. Scroll to the bottom of the page and click the “Save Changes” button

That’s it! Your blog is no longer “Just another WordPress weblog”, it is your weblog now!


Bonus:

How does WordPress display the Tagline?
Most themes display the blog description with something similar to the following code:

<?php bloginfo( 'description' ) ?>

Now, if you do not want to display your blog’s description you can do one of the two following things:

  1. Go into your Settings and clear the text from the Tagline box, or
  2. Go into your theme’s code and using the ‘//’ for commenting, make a change like this:
    <?php // bloginfo( 'description' ) ?>

Why Hard or Soft Refresh

Posted by The Doctor on Dec 8, 2009 with No Comments | Short Link
in Tips

How to perform a soft or hard page refresh with your internet browser.

Find WordPress ID

Posted by The Doctor on Dec 6, 2009 with No Comments | Short Link
Last modified by The Doctor on April 2, 2010
in Tips
as

How to find the WordPress ID number of any of your WordPress content (Posts, Media, Links, Pages, or Comments) items.