Tag Archive for: WordPress

How to Add a Sidebar to Your WordPress Theme

Most simple WordPress templates/themes generally employ a single sidebar. But, in keeping with WordPress’ open architecture, you can easily add a second (or 3rd or 4th) sidebar to your site’s theme. And, you aren’t restricted to using your sidebar in the typical sidebar area–you can put your new sidebar in a header, a footer, or any other area in your template. Additional sidebars let you place any WordPress Widget (such as Recent Posts, Pages, Links/Blogroll, Calendar, Tag Cloud, as well as any custom widgets) into new areas of your WordPress template. This technique is especially powerful when combined with custom WordPress page templates–with additional sidebars, we can have custom sidebars for each of our custom page templates. This is the approach we’ll teach you in this tutorial.

Laying the Groundwork for Your New Sidebar

So what we’ll do in this tutorial is to add a second sidebar to one of our custom template pages in our WordPress theme. We have a custom homepage in our template where we want to include a robust call to action to our website visitors rather than a Category list which is more appropriate for blog readers. The screenshot below shows the default “Sidebar 1” sidebar from our simple template, and we’ll add a second sidebar called “Homepage Sidebar”.

Add WordPress Sidebars

Let’s first take a 10,000 foot view, we are going to employ the following steps to add our sidebar:

  • We are going to register our sidebar within the template by making an entry in the template’s functions.php file.
  • We are going to create a separate, custom sidebar file called sidebar-homepage.php.
  • We are going to include a reference to our custom sidebar-homepage.php file in our custom page template.

That’s it! With these three steps, we’ll have a 2nd sidebar that will display on our custom homepage. With the same technique, we could create additional sidebar areas, the steps would be the same.

Step 1: Registering the Additional Sidebar Within the WordPress Template

First step: we start by registering our sidebar within the template’s functions.php file. 99% of all WordPress templates/themes have a functions.php file. If your theme doesn’t have one, simply create a file in a text editor (we like Notepad++ in the Windows environment and TextMate in the Apple environment). If you don’t know how to find your theme files, you’ll find them in your web host in the following directory: www.yoursite.com/wp-content/themes/yourtheme/.

You’ll want to begin by finding any existing “register_sidebar” entries in your functions.php file. Ours had the following existing sidebar definition for our single default sidebar:

if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}

To register our second sidebar, we simply add the following code to the functions.php file:

if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Homepage Sidebar',
'id' => 'homepage-sidebar',
'description' => 'Appears as the sidebar on the custom homepage',
'before_widget' => '<div style="height: 280px"></div><li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}

So what did we just do?

  • We told our WordPress installation, “we are adding a second sidebar area that we’ll use in our theme”
  • The sidebar’s name is “Homepage Sidebar”
  • The ID of the sidebar (we’ll refer to that ID later) is “homepage-sidebar”; you can choose “footer-sidebar”, “second-sidebar” or anything you want
  • We added the description “Appears as the sidebar on the custom homepage” that will display just under the sidebar’s title.

If you upload your new functions.php file to your WordPress installation, you should see your new sidebar if you browse from your WordPress dashboard to Appearance, then Widgets. It should look like the following picture. We’ve already added a Text Widget with the title “Contact Us” to ours, but yours will be empty when you first look at it. But, all we have done is create the sidebar so far; we haven’t yet taken the steps to display the sidebar anywhere in our theme, that will come in the next steps.

Add WordPress Sidebar Step 2

If you see your new sidebar in the Widgets area of your WordPress Dashboard, you are ready to move on to the next step.

Step 2: Create an Additional Sidebar File

WordPress themes use a default file called sidebar.php to display sidebars on pages and posts. But, our goal is to create a second sidebar, we’ll do that with a separate file called sidebar-homepage.php.

Again, we’ll open our text editor and create a file and paste in the following code and insert the ID of your new sidebar within the “dynamic_sidebar()” declaration like so:

<div id="sidebar">
   <ul>
      <?php
      if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('homepage-sidebar') ) :
      endif; ?>
   </ul>
</div>

Now, we have to note that our example sidebar file is highly simplified. Most sidebar files have more code–this extra code displays core navigation in the event the sidebar does not have any widgets installed in it–but for the purposes of this tutorial, we have to simplify it. As an alternative, you can simply copy your sidebar.php file and rename it. Don’t forget to include your sidebar ID within the dynamic_sidebar declaration (shown in red in the code example above)–that sidebar ID tells WordPress which sidebar (which we registered in Step 1) to display.

Step 3: Call the Additional Sidebar from Your Theme Files

We’re almost there. Now, all we need to do is call our new sidebar file, sidebar-homepage.php from our template files–keep in mind that our file name must follow this construct: sidebar-_______.php; we’ll see why in a moment. In our example, we’ll call our sidebar file from a custom template page–but you can call your new sidebar from a footer file, header file, or any theme file that displays on your WordPress site.

The function in WordPress that calls sidebars is get_sidebar(). When get_sidebar() is used with no information within the parenthesis, WordPress grabs the default sidebar.php file. But we want to grab our sidebar-homepage.php file, so we put “homepage” in single quotes within the get_sidebar parentheses. This tells WordPress to grab a file called sidebar-homepage.php . The code we want to insert in our template file is the following:

<?php get_sidebar('homepage'); ?>

What we’ve told WordPress to do is the following: we want to grab a sidebar file, but not the default sidebar, we want a file called sidebar-homepage.php. With this string of code, we’ve successfully grabbed our custom sidebar file.

Our New Sidebar

If you’ve coded your additional sidebar correctly, you can drag Widgets from the WordPress dashboard to your new sidebar and you’ll see the widgets displayed on your WordPress site. Here’s our new sidebar displaying on our homepage, while we display our default sidebar on interior pages and blog posts:

Our New WordPress Sidebar

Other Approaches to Adding Sidebars

Our method is one of many, there are more elegant ways of accomplishing the same result without creating separate template files, but the method outlined here is simple and reliable. Please comment below if you have questions or run into trouble.

Your WordPress site needs SEO. Buy our WordPress SEO book at Amazon. Now in the second edition!

 

From the Wordpress SEO book

Should You Disallow Old Link Structures With Robots.TXT?

Questions from Readers…

We’re getting great questions from readers of our book, WordPress 3.0 Search Engine Optimization. Today, Michael tackles a question sent in by Jeff of Houston, TX. Remember, send in those questions and feedback! We’re always  thrilled to help out our readers.

Hi Mr. David,

I’m sorry to contact you with such an insignificant matter, but I just got your book today and wanted to ask if you could clarify an issue that I have encountered. My site has been up for about 6 months and I had been using a permalink structure of /year/month/day/postname and I changed it to /category/postname. I also used Deans Permalink Migration plugin to add 301 redirects for published posts.

I want to use your Ultimate Robot.txt file to my site, but I’m wondering if I add the “Disallow: /2011/ ” directive to eliminate duplicate content in my archives, will it disallow my previous posts that had /2011/ in the old permalink structure? Any help or clarification on this issue would be very appreciated. Thank you for your time.

Jeff

Houston, TX

Jeff,

We love hearing from readers.

Yes, I believe that if you add the directive Disallow: /2011/ you will remove year archives from indexing, but also any post that uses the year in that position as part of its permalink structure. I tested it, and it appears to disallow the content.

You can test your robots.txt file by using Google Webmasters’ Crawler Access testing tool. The tool lets you test the text of a robots.txt file and compare it to a specific URL. The tool then tells you if your robots.txt file is allowing or blocking the URL. You can find the tool by logging into Google.com/webmasters and then selecting “Site Configuration” and then “Crawler Access” from the left menu. We didn’t cover this specific tip in WordPress 3.0 Search Engine Optimization, but we will implement it in a future edition of the book.

Now, but you say you’ve changed your permalink structure–that should solve the problem. In the case where a robots.txt entry would block regular blog posts from getting indexed when blocking year archives, the solution is clear: don’t block either. Just make sure your year archive is set to display excerpts of the posts, rather than the full text of the posts.

Michael

Buy the Book Today at Amazon

Are Site-wide H1 Tags in WordPress Good or Bad?

Questions from Readers

The great thing about writing our book, WordPress 3.0 Search Engine Optimization, is we get to hear from all those readers who have taken our material and put it to work in the field. Today, we’ve got a fascinating question from Robert, who asks that question we confront every day in one way or another: Just how far should I trust Google’s sophistication?

Hi Michael,

I’m currently reading your Packt book on WordPress SEO, and I have a quick question about HTML5 and the way it uses header tags. Your book says to use only one H1 tag per page, which makes sense. However, HTML5 advocates multiple H1 tags per page, as long as each is contained in a separate section/header.

Worse yet, the first H1 tag on a page is usually a wrapper around the home link logo and contains the same meaningless title text on every page. You can see a typical example at CSS3maker.com :

<header>

<h1 id=”logo”><a href=”index.html” title=”CSS 3.0 Maker”>Css 3.0 Maker</a></h1>

</header>

Most SEO bloggers assume single H1 tags are a thing of the past. Based on your experience, has there been any evidence that Google/Yahoo interpret HTML5 content any differently than HTML/XHTML?

If not, should I remove the header and h1 tags around my logo anchor tag? My site looks like the CSS3maker code above. And like them, I don’t have anything else in my header, so if I remove the H1 tag, wouldn’t I also just scrap the header tag? I have a meaningful H2 tag in my content section, which could be elevated to an H1 tag.

Thanks,
Robert

BTW, I’m really enjoying your book.

 

Robert,

This may be a cop out…but does this help?

I think google is tuned in enough to ignore site-wide h1 tags. One of my philosophies is “packaging”–make it so brain-dead easy for a search engine that it can’t POSSIBLY get confused. We are sort of on-page nerds when it comes to that stuff. Most of the pages we create are pretty perfect, at least on the page.

Do we, in our SEO business, remove site-wide h1 tags around logos and site names in the header? Absolutely we do, but I don’t think it’s the kiss of death if you don’t. Remember one thing: google has to fit its algorithm so that it doesn’t punish sites for small mistakes–otherwise, it would punish 80% of the web or more.

I am very glad you are enjoying the book!

Michael

Buy the Book Today at Amazon

From the Wordpress SEO book

Book Excerpt: Creating Keyword-Rich Content

Our book, WordPress Search Engine Optimization (now in second edition!) is out on the stands of all the upscale local bookstores and online retailers in your neighborhood. But why buy before you try? Here’s one page out of the whole volume to give you a taste of the SEO tips and strategies that you’re missing. You can buy the book at Amazon.

Creating Keyword-Rich Content

It may seem unnatural to focus on a keyword when writing content for your website, but it is absolutely essential to write your pages in a manner that will get them ranked highly in the search engines. No matter how well-written your content is, if it doesn’t contain the keywords and phrases that people use to search for your product or service, it won’t show up in the search engine results pages and no one will ever see it.

For this reason, the first step to creating content for your site is to begin with the right keywords. We learned in Chapter 3 how to research keywords, find the big-money keywords and key phrases, and organize and prioritize them. With sound keyword research, writing flows naturally: start with the high-volume, high-value keywords and write high-quality content for your site that focuses on those keywords.

It’s best to target one keyword phrase or group of phrases per content page. Recall that keyword overlap can give us a close group of keywords such as “Miami AC” and “Miami AC repair.” In any case, keep your content very focused on a small group of words.

Whichever phrase or phrases you are targeting should be used several times within the body content. You should make sure to include the keyword phrase in the title and headings as well as a few times throughout the actual content. It is especially important to include your keyword phrase near the beginning of your content . Most search engines tend to give more weight to words and phrases that appear in the first few paragraphs of a web page. Remember that search engines determine the subject of your page from the words you use on the page. If you don’t use the keyword phrase often enough, your page will not rank for that phrase.

What this means is that if your page is selling book covers and you are targeting the keyword phrase “buy book covers,” that phrase needs to appear on the page in several places. First of all, it must be included in the title and somewhere in the first paragraph of the copy. In addition, you should try to work it into the rest of the copy at least two to three more times and into the headings that separate different sections of copy. You can also add the keyword phrase to the alt text for any photos that appear on the page.

Buy the Book Today at Amazon

Tutorial: How to Remove link rel=’prev’ and link rel=’next’ from WordPress Head

How to Remove link rel=’prev’ and link rel=’next’ from WordPress Head (in WP 3.0+)

WordPress, in its default state, prints a lot of excess code to the head section of webpages. One element that always annoyed me were two entries that always appeared:

<link rel='prev' title='' href='' />
<link rel='next' title='' href='' />

These entries are recommended for web usability for disabled persons–consider that before removing them. We were looking for a way to lean up our pages, though, so we thought we’d like to remove these entries. There are some outdated instructions in WP forums that will not work in WP 3.0; we tried several approaches, but nothing worked.

In your WordPress template, you’ll find your functions.php file. Open that file and enter the following line.

remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );

This “filter,” as it is called, will tell WordPress not to generate the link rel=’prev’ and link rel=’next’ lines in the WordPress head.

Just a note on why those outdated instructions wouldn’t work with WP 3.0. The filter we created instructs WP to turn off the action titled “adjacent_posts_rel_link_wp_head.” Our commands works in WP 3.0 and above because the former action prior to 3.0 was titled “adjacent_posts_rel_link.”

 

WordPress Stripping iFrame Elements? Here’s the Fix.

Elements like Google Map embeds get stripped out. Here’s the Fix.

If you have ever tried to enter a Google Map embed into a WordPress page or post, you’ve noticed that switching between “Visual” and “HTML” view in the page or post edit window strips the iFrame out–leaving you with broken code that displays nothing. Luckily, there is a fix.

You’ll need to find the functions.php file in your active theme folder. It’s a standard WordPress file, so it’ll be there. Next, we are going to add two short functions that change the way the WordPress editor handles iFrame code. You’ll want to insert the following lines of code before the closing “?>”  of your functions.php file.

// this function initializes the iframe elements 

function add_iframe($initArray) {
$initArray['extended_valid_elements'] = "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]";
return $initArray;
}

// this function alters the way the WordPress editor filters your code
add_filter('tiny_mce_before_init', 'add_iframe');

That’s it. You can test your mod by entering some iFrame code in the editor window and switching between  the visual and HTML editor.

From the Wordpress SEO book

SEO Master Class: The Mathematics and Operation of Google PageRank

The following is an excerpt (with some recent modifications and editorial comments) from our book, WordPress Search Engine Optimization. You can buy the book at Amazon.

The Mathematics and Operation of Google PageRank

Google’s PageRank is part of its search algorithm; the other search engines’ ranking algorithms work similarly. Yahoo and Bing, while they obviously measure inbound link counts as a ranking factor, do not disclose to web users any measure of page value equivalent to PageRank. PageRank works through complex mathematics. Understanding the mathematical intricacies is not vital, but can help illuminate how PageRank impacts your link building efforts. PageRank works the same on all platforms, WordPress or otherwise.

The PageRank Calculation

PageRank calculations works as follows: Google assigns a numerical value to each indexed page on the Web. When an indexed page hyperlinks to another page on the Web a portion of that numerical value is passed from the linking page to the destination page, thereby increasing the destination page’s PageRank. Inbound links increase the PageRank of your web pages and outbound links decrease PageRank. PageRank, often abbreviated as “PR,” is expressed as a number from 0 to 10. Google.com and Facebook.com, both of which benefit from millions of inbound links, enjoy a PageRank of 10. In common parlance, a PageRank 10 site is referred to as a “PR10 site.” Remember though that PageRank refers to pages on the web, not just sites themselves. A PR5 site simply means that the site’s front page is a PR5.

So how is PageRank specifically calculated? Every indexed page on the web enjoys a small amount of PageRank on its own, a PageRank score of 1. This inherent PageRank is the original source of all PageRank on the web; it is only through linking between pages and sites that some pages accumulate higher PageRank than others. However, a page can never send all of its PageRank to other pages—this is where the damping factor comes into play. The damping factor is simply a number between 0 and 1 (but think of it as zero to 100 on a percentage scale); it represents the amount of PageRank that can be sent away from a page when that page links out to other pages.

If a search algorithm’s damping factor were set to zero, no page would ever send PageRank away, and the entire PageRank calculation becomes pointless. On the other hand, if the damping factor is set to 1, then 100% of a page’s PageRank is sent away through outbound linking, and any page with any outbound links retains no PageRank. In this case, the algorithm also fails—the internet would be populated entirely sites of either PR0 or PR10 with no sites in between. As it happens, the damping factor employed by Google is widely believed to be .85. This means that 85% of a page’s PageRank is available to be passed to other pages through linking, while 15% of a page’s PageRank will always be retained. It is believed that Google can alter the damping factor for particular sites.

Consider for a moment that Google manages PageRank calculations for billions of web pages. If that wasn’t daunting enough, consider that Google undertakes the even more staggering task of managing the mathematical calculations of immeasurable numbers of links between those billions of sites.

PageRank, Diagramatically

This graphical illustration of Pagerank calculations for a hypothetical group of web pages shows that the PageRank distribution is accumulated in site “B” because it enjoys a high number of links. The sites represented by the small circles at the bottom of the illustration retain only 1.6% of the PageRank distribution because they link outward and have no inbound links. Note also that site “C” enjoys a healthy amount of PageRank simply because it enjoys a single link from site “B.”

You Have to Share Your PageRank

Also bear in mind that the amount of PageRank available to be passed by a page will be equally divided among all the outbound links on that page. So, if a webpage has a total of six links: three internal links and three external links (links to outside websites) then the PageRank passed away by that page will be shared equally among the six links on that page.

What does that mean for the link builder? Well, it means that if you have secured a link on a great PR4 page, but that page has 200 outbound links, then you’ll be sharing the available PageRank with 199 other sites. That’s why you want to seek out pages with low numbers of outbound links. When there are fewer outbound links, your link will enjoy a much greater percentage of the available PageRank.

The Logarithmic PageRank Scale

If the mathematics underlying PageRank weren’t complicated enough, there is another facet that you must consider. The PageRank scale of PR1 to PR10 isn’t linear, it is logarithmic. Therefore, it takes ten times as much linking power to rise from a PR2 to a PR3 page. Expressed another way, a PR4 page has 100 times the linking power of a PR2 page. As each level of PageRank is reached, it becomes harder and harder to reach the next level. There are only about 120 to 150 PR10 pages at any given time, and generally this elite class of pages and sites includes Google.com, Microsoft.com, WhiteHouse.gov, and other sites of equivalent popularity and character.

PageRank Is Historical

PageRank is historical and only updated every three months or so (although sometimes much longer periods pass between PageRank updates, it’s really up to the whim of Google)—when you check the PageRank of a page, you aren’t seeing the current PageRank, you are seeing the PageRank reported as of the last PageRank update.

Buy the Book Today at Amazon

From the Wordpress SEO book

SEO Master Class: Choosing a Keyword-Rich Domain Name

The following is an excerpt (with some recent modifications and editorial comments) from our book, WordPress Search Engine Optimization. You can buy the book at Amazon.

SEO Master Class: Choosing a Keyword-Rich Domain Name

Almost all websites will rely on primary keywords on core pages like the front page. If your keyword research teaches you that one phrase or a very small group of related phrases represents your high-volume, high-relevance primary keywords, then you’ll want to consider using those keyphrases in a keyword-rich domain name. For some, this won’t be possible or desirable: perhaps the domain name has already been chosen, or the business’ marketing strategy revolves principally around a customized brand name. But if you have the opportunity to choose a keyword-rich domain name, you’ll benefit from a little extra power in your ranking efforts down the road. You may have noticed that often a competitive search market is populated with websites that have keywords in their domain name. This is no accident: key terms in the domain name is a ranking factor and experienced webmasters know it.

Whatever you do, choose wisely; if you ever need to change your domain name, it’ll take a lot of work and you’ll loose both incoming links and existing customers.

Tip:

SEO professionals know that you don’t always have—and won’t always need—every SEO element (domain age, keyword-rich domain name, expert title tags, thousands of inbound links, etc.) to rank well. When you consider all the elements together that make a site rank well, you want to make sure you have 80% of the elements present—but don’t fret if a few elements are out of your control.

Domain names are certainly an element that search engines consider as a ranking factor. Remember a search engine’s core purpose: to deliver relevant search results to a user entering a query. Certainly a domain name that includes a few of the searcher’s query terms would tend to be relevant for that query. The weight afforded by search engines to keywords in the domain names is moderate. In competitive markets, a keyword-rich domain name can provide some extra push to pass tough competitors. This can be frustrating in a market where every conceivable variant of a domain name has been snatched up.

Also keep in mind that keyword prominence applies to keywords in domain names. This means that the first words in a domain name are afforded greater weight by the search engines than the last words in a domain name. You will also want to mirror the word order of popular search phrases whenever possible and keep your important terms first in the domain name.

To craft a domain name, begin with your primary keywords. We’ll use some real keyword data and search volume surrounding the keyphrase “Denver homes” as an example.

Keyword Monthly Search Volume
Denver homes for sale 1000
Denver homes 1000
Denver homes for rent 280
new homes Denver 280

The preceding table demonstrates a few important points:

  • “Denver” is the first word in both of the highest volume key phrases.
  • “Denver” appears in all four of the keyword variations.
  • “Homes” appears in all four of the keyword variations.

In this example, the terms “new” and “for rent” aren’t the valuable terms—unless of course your website is concerned with rental homes and apartments in Denver, in which case the “Denver homes for rent” keyphrase is the only relevant one on which to base your domain name. With “Denver” in the first position for the majority of searches, you will want to maintain that word order.

You should also consider keyword overlap in crafting domain names. Keyword overlap exists when one key phrase or keyword is incorporated either partially or fully within another—and you can use it to your benefit. In our example, “Denver homes” has full overlap with “Denver homes for sale.” When you see overlap like that with robust search volume for both phrases, the longer key phrase becomes even more attractive as a primary keyword for your domain name. “New homes Denver” has only a partial overlap, and even that’s a stretch because the word order is reversed.

And so, in our example, the path is clear: “Denver homes for sale” is a highly desirable high-volume phrase to use as the basis for a domain name. But what to do if “denverhomesforsale.com” is already taken? You have two options: buy an existing or dropped domain, play with hyphens, or create a clever variation with extra words.

Buying/Acquiring Domain Names

You can always buy a domain name from its owner or wait for an existing domain to expire (so-called “dropped” domains). For dropped domains, there are a host of online services that, for a fee, will help you navigate the increasingly complex world of expired domains. This approach will yield some some inevitable frustrations: the system is dominated by experts that have mastered its subtleties. As a newcomer, you’ll likely have to endure a learning curve. Also, an owner of an expired domain is entitled to a redemption period during which you’ll have to wait if you want to snatch up a choice domain. For most SEO pros, the extra time and risk isn’t worth it—especially when you can overcome a less-than-perfect domain name with sound on-page optimization and some extra linking power.

You can also buy a domain in the aftermarket from an existing domain owner. Dangers to watch our for with this approach are that some domain owners make it impossible to be found, and when you do find them, they have a completely deluded sense of the domain’s value. Services like sedo.com and domainbrokers.com maintain ostensibly active listings of domains for sale. Domain registrars like godaddy.com offer domain “buying services” where you select a desired domain name and they attempt to secure it for you.

In the domain resale market, asking prices for domains are typically astronomical. Overall, the domain resale market is riddled with complexities, dead ends, and punitive pricing. If you do undertake to purchase a domain, either by resale or following expiration, be prepared for a hunt. Smart SEO professionals don’t overpay for domains, and they certainly don’t endure unreasonable delays to launch their next project.

Hyphens and Extra Characters in Domain Names

It’s true: all the easy domain names are taken. But you still have an opportunity to fashion a keyword-rich domain name with a little creativity. All domain names must follow these technical rules:

  • Domains can include letters (x, y, z).
  • Domains can include numbers (1, 2, 3).
  • Domains can include dashes/hyphens, and can be repeated in sequence (-, –, —).
  • Domains cannot include spaces.
  • Capital letters are ignored.
  • Domains can’t begin or end with a dash.

Hyphens present a good opportunity. In our example, we might consider checking for the availability of denver-homes-for-sale.com. This domain keeps the keywords in order, maintains keyword prominence, and the hyphens have two benefits: they certainly make the domain easier for humans to read and can help search engines distinguish the words (i.e., “kitchens pot,” vs. “kitchen spot”). The drawback of hyphens—and it is worth consideration—is that hyphenated domains are awkward and unmemorable and can appear trashy. Visitors are unlikely to remember your specific combination of words and hyphens. It can also be inconvenient to express your email address repeatedly as “Peter at Denver homes for sale , dot com, with hyphens between all four words.” That said, in a pure search environment, where you are going solely for keyword-based traffic, you can worry less about memorability. You’ll be getting your visitors solely from search and not requiring repeat visitors.

Hyphenated domains have a fairly-deserved reputation as being a bit trashy; many link farms and thin content sites employ hyphens in their domain names.

A helpful variant of this technique is to simply apply a suffix to the domain, such as denverhomesforsalenow.com or denverhomesforsale303.com (303 is an area code in Denver). Get creative: think of a term that adds to your domain. The terms “express” and “pros” have positive connotations. “Express” suggests speedy, high-value service. “Pros” suggests someone licensed with experience. Find an appropriate suffix for your domain and you will have a keyword-rich domain without the hassle and expense of purchasing in the domain aftermarket.

As a final word on domains, make sure you use a reputable domain registrar. Some disreputable registrars may make it difficult for you to transfer you domain away later.

Tip:

Don’t park your domains, put up content! Domain registrars like GoDaddy offer domain parking “service.” This isn’t a service at all—it’s a way for GoDaddy to squeeze a few pennies in pay-per-click ads out of your domain. The better approach is to put up even just a few paragraphs on your domain just to get the search engines indexing the page and building up some site age. Parked domains don’t earn site age.

Buy the Book Today at Amazon

How to Insert Images into WordPress Posts and Pages

How to Insert Images into WordPress Posts and Pages

Inserting images into WordPress posts and pages can usually trip up new users–we get asked about this a lot. Once you do it a few times succesfully, though, you’ll feel like a master. What follows is a quick and dirty overview of how to do it.

1. Open a New Post or Page, or Edit and Existing Post or Page

The first thing you need to do is to open a document to work on. In WordPress you can choose from posts or pages, and they both work the same way. Go to your WordPress dashboard and click on the left navigation for either posts or pages. When that navigation button expands either select “edit” or “add new’.

2. Upload Your Image

Next, you want to upload your image. When you have the Post/Page edit window open, place the cursor where you want your image to appear in the document. Then click the icon that appears at the top of the edit window, indicated by a red circle in the following image (it looks like a grey rectangle with a thin grey border around it):

Next, you will see that once you click the graphic icon for image uploads indicated in the picture above, the “add an image” dialogue box pops up, as shown in the picture below. You’ll note that in this picture the “from computer” tab is highlighted– but you can also upload from a URL. Today we will learn how to upload from computer. Keep in mind that once images are uploaded, resizing them or editing them is difficult or impossible, so you want to make sure your images are sized right before you upload.

Hit the “choose file” button and browse to where the picture is on your computer– just like you do with e-mail. Once you have the file selected, hit the “upload” button. Don’t close this window yet–you will enter parameters in the next step.

3. Choose Your Parameters

Once you have hit the “upload” button your image will upload (your image is now stored on your web server/web hosting), the “add an image” dialog window changes dynamically to show you a range of parameters. You can see a picture of the dialog window below:

I have highlighted the common parameters that are most important when uploading an image.

Link URL

First is the “Link URL”–this selection box fills automatically with the link location of the image file. If this box contains a URL (as shown in the picture, it is filled with a long URL), then the image will be a clickable link in your post. If this box is empty (you can empty it by clicking the “none” button just under the box) then your image will not be a clickable link. In most cases, you do not want your images to be clickable links, so I almost always hit that “none” button to empty that box.

Alignment: Left, Right, Center

The next parameter is “alignment”– you simply select the radio button for left, center, or right. Left and Right alignment will make your text wrap around the image; “none” means that your text will not wrap around the image.

Size

The last parameter is “size”– here you simply select the size, in pixels, for which you want the image to appear. As you can see in this example, I have selected a full-size image that is 560 pixels wide, and 492 pixels high.

Insert Into Post

The last step, once your parameters are set, is simply to hit the “insert into post” button–your image will be inserted into the post in the position where your cursor was when you upload your image.

If you have made a mistake, simply highlight the image, hit the delete key on your keyboard to remove it and start over.

4. Making Changes Later

Of course, this tutorial would not be complete if we did not at least brush on how to make changes later– and WordPress is pretty well set up to make edits to the way your image displays. See the screenshot below:

When you wave your cursor over the image in the document edit window, you will see two small icons appear–the icon of an image will bring up the edit window from step three–from there you can change parameters, like size and orientation left, center, or right. The second icon is the familiar “do not enter” symbol– clicking this will remove the image.

Good Luck!