Web Developer


Google Inline Jump To Links

Thursday, 18th March 2010

It is now fairly common to see Google insert jump to anchor links for popular pages in their search results. For example, a search for “wordpress loop” returned 3 anchor links.

Inline Jump To Links

Then I did a search for “wordpress multiple loops” and noticed an additional jump to link within the description text.

Google has picked that section of the page as being more relevant to my search terms and has included a link to that anchor. Not only that but the description is taken from the page content immediately after that anchor point and heading. Clever.

Let’s look at the source code

In this example, looking at the page source code reveals an anchor tag followed by a heading tag followed by a paragraph of content.

347
348
349
<a name="Multiple_Loops_in_Action" id="Multiple_Loops_in_Action"></a>
<h4><span class="mw-headline">Multiple Loops in Action</span></h4>
<p>The best way to understand how to use multiple loops is to actually show an example of its use...

It’s unclear wether Google in picking the “Multiple Loops in Action” link text from the anchor name or the following heading text.

Interestingly the ‘mw-headline’ class applied to the heading seems to be a fairly standard class applied to headings in Wikis, so maybe this is what Google is picking up on.

I think I may have to try out some of this HTML markup and see what happens…

Further Reading


Category Paging Functions in WP e-Commerce 3.7.6

Wednesday, 10th March 2010

WP e-Commerce 3.7.6 now includes better support for paging on category pages.

The latest release contains a suite of functions (my little contribution) to help you customise how pagination is displayed in your WPSC templates.

You can find an in-depth look at these functions and how to use them in the WP e-Commerce Documentation.

Below are some quick examples of what you can do…

Read the rest of this entry »


WordPress Permalinks on a Namesco Zeus Server

Monday, 1st March 2010

I had a bit of a problem recently trying to convert a WordPress .htaccess file to a rewrite.script file for a Zeus server. My knowledge of the syntax for rewrite.script was non-existant so I tried the .htaccess converter provided in the Namesco admin.

This managed to get me part of the way there but the permalinks included “index.php” before the custom permalink setting.

Read the rest of this entry »


Customise the Terms and Conditions Checkbox and Link in WP e-Commerce

Tuesday, 9th February 2010

By default the terms and conditions link on the checkout page in WP e-Commerce activates an overlay popup containing the terms and conditions text you have specified in the admin.

But what if you want the link to redirect to a page instead of triggering this popup? You just need to make a small change to your checkout template. Here’s what you need to do…

Read the rest of this entry »


List Pages at Depth 1.1

Monday, 25th January 2010

Just released an update to the List Pages at Depth plugin for WordPress.

This update fixed a pretty major bug which prevented the list showing the correct branch of subpages when the start depth was greater than 1 (secondary level pages).

Now this is fixed you’ll be able to display a list of only tertiary level pages – Useful if you have a site with a horizontal navigation with drop down menus for secondary level navigation, and want to show and subpages of the secondary level as a list in your sidebar.

What’s more the plugin now includes a widget so you can easily add a list of subpages into your sidebar.

Read the rest of this entry »