Search Sitemap Contact Subscribe to Feed Feed Readers

WP Theme: Fashionista

January 2nd, 2008 Wordpress Themes

WP Theme: Fashionista

The Fashionista theme was designed for BlogShopr in mind. BlogShopr act as a blog aggregator for multiple fashion blogs, hence the content section can be unpredictable, with multiple images of different widths, often times exceeding and overflow the column (example post exceeding 1024 in width) . Thus the need for a fluid column on the right to hold the contents.

And since it’s for a shopping blog, expect to see elements of shopping bags :)

Features

  • 3 Columns Fluid Width
  • Widget support
  • XHTML & CSS compliance

License

This theme is released under the Creative Commons Attribution 3.0 license, hence please leave the footer links intact.

Preview

Fashionista Demo

Download

Name: Fashionista Theme
Size: 42,62 kBytes
FileType: .zip-File
Downloads: 1234
[Download Now]

Need Help?

Much as I want to provide free support, there are only 24 hours a day.
So if you need a chunk of my time, I’m available for hire.



WP Plugin Update: Genki Youtube Comments 1.1

December 7th, 2007 Wordpress

A new Youtube API was released into the wild on 28 August 2007. The old REST/XML-RPC API was supposed to continue to work for at least a year, till August 30th, 2008. So I thought I have plenty of time before I need to update the Genki Youtube Comments plugin.

Unfortunately a few weeks back, the comments feed in the old API was removed and broke my plugin. After some quick reading and patching, the plugin is playing nice again :)

No new features from the new API except now we can grab the last 25 comments (up from 10). Give v1.1 a download here



How to Improve Search Function in WP [Using Google]

October 24th, 2007 Wordpress

Continuing from my previous post on improving WP search function using plugins, I’m going to show you how to integrate Google Custom Seach Engine into your blog. Live demo here.

Advantages include:

  • Results are sorted by relevancy
  • All content in posts/pages (e.g comments) are searchable
  • Make some money by displaying relevant ads using AdSense :)

Hold your horses!

First we need to find out how well Google has indexed your blog. If your blog isn’t properly indexed, Google can’t return relevant results and that would defeat the whole purpose of outsourcing the search function. In that case, you are better off sticking to using search plugins.

Now go to google.com and type in the following and replace my blog url with your own blog.

site:ericulous.com

You will see the number of of pages indexed by Google and of course the search results. Does the number of pages tally with your blog? Are you liking the results returned? There’s no hard and fast rule here. Generally if you have a established blog, you need not worry much. Whereas fresh blogs might not be properly indexed (yet).

Google Custom Site Search

With that out of the way..

Step 1: Create a Custom Search Engine for your blog

A. Login to http://www.google.com/coop/cse/
B. Click on the “Create Custom Search Engine” (big blue button)
C. Fill in the form (sample as below)

CSE Sample Form

D. Click “Next” button and on next screen, click “Finish” button
E. Click on “Control Panel” and then on “Code”
F. Specify the url in your site for the search results to appear (http://ericulous.com/googlesearch for me)
G. For ads, I opted for “Top & Right” (remember to enter your adsense id in “Make Money” tab)

CSE Control Panel

H. Leave this window open as we’ll need to copy and paste the “Search box code” and “Search results code” later

Step 2: Modify theme files

I will be using the Default Wordpress theme for illustration here. Adapt to your theme as and where needed ;)

A. Modify searchform.php
Replace following with the “Search box code” in Step 1H

<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>

B. Create a new page template
1. Duplicate a copy of page.php and rename it googlesearch.php
2. Open googlesearch.php and add the following code at the top
(before < ?php get_header() ?>)

<?php
/*
Template Name: GoogleSearch
*/
?>

3. Replace following code (for maximum width)

<div id="content" class="narrowcolumn">

with

<div id="content" class="widecolumn">

4. Delete the following code (to remove sidebar for maximum width)

<?php get_sidebar(); ?>

5. Delete the following code

<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

and in place, add both the Search box code and Search results code in Step 1H

Step 3: Create a new page in Wordpress

A. Go to Admin Panel > Write > Write Page
B. Enter a page title
C. On the right menu, look for “Page Template” and select “GoogleSearch”
D. On the right menu, look for “Page Slug” and enter “googlesearch”

Now you have the King of Search at your bidding :)



How to Improve Search Function in WP [Using Plugins]

October 16th, 2007 Wordpress

Current Wordpress search limitations

  • Results sorted by date, not relevance. May not be an issue if your posts are time sensitive. But most likely you want your visitors to find the best matched post instead the newest matched post.
  • Only posts are searchable; pages, comments etc are not. May not be an issue if you only have a few pages with unimportant info (e.g contact). But if you rely heavily on pages for your content (e.g CMS), you are out of luck..

..but where limitations sets in, Wordpress plugin authors always come to the rescue :)
I won’t be listing the tons of search plugins available. Just the one that I like, works well and a breeze to install.

Must Have Plugins

Search Unleashed
Function: Full text search in posts, pages, comments
Installation: Plug & Play with many options in admin panel
Demo: A search for “occurrences” returns result from comments.

Optional But Nice to Have Plugins

Nice Search
Function: Beautify your search url by redirecting ?s=query searches to /search/query
Installation: Plug & Play
Demo: Just do a search on author’s blog

Search Spelling Suggestion
Function: Displays a suggested spelling correction for a given term (like google)
Installation: Add only a line of code to your search template
Demo: Search for “computor” and the search page will display “Did you mean: computer”.

Search Meter
Function: Keeps track of what your visitors are searching for.
Installation: Plug & Play
Demo: Admin Panel Screenshot

Some notes

With the above plugins, there remain one limitation: sort by relevance. The only plugin that address this issue is Wordpress Advanced Search. Unfortunately it is not compatible with WP 2.3 right now. Installation is slightly more complicated but still manageable. And I suspect it may not work well with the above “optional but nice to have” plugins.

[Up Next]: How to address all the issues by outsourcing your search to Google



How to Hide Sub-Categories in the Sidebar

October 9th, 2007 Wordpress

Hiding Sub-Categories in Wordpress

Prior to Wordpress 2.1, the wp_list_cats() function has a “children” parameter to hide your subcategories. For whatever reason, wp_list_cats() was deprecated, and the “children” parameter was dropped from the new wp_list_categories() function in WP2.1 and onwards.

So how to hide the unsightly subcategories from showing up in your sidebar? You can install and use the new function in the unfold_list_categories plugin by Braydon Fuller.

Or hide it with a quick and dirty trick using CSS. Simply open your style.css file and add the following code. And poof it’s gone :)

.children { display:none; }



Close
E-mail It