WordPress TwentyTen Tip: Show posts from a certain category on the homepage

Go to Appearance > Editor and edit ‘loop.php‘.

Just under

/* Start the Loop.
*
* In Twenty Ten we use the same loop in multiple contexts.
* It is broken into three main parts: when we're displaying
* posts that are in the gallery category, when we're displaying
* posts in the asides category, and finally all other posts.
*
* Additionally, we sometimes check for whether we are on an
* archive page, a search page, etc., allowing for small differences
* in the loop on each template without actually duplicating
* the rest of the loop that is shared.
*
* Without further ado, the loop:
*/ ?>

replace following bit of code

<?php while ( have_posts() ) : the_post(); ?>

with

<?php if ( is_home() ) { query_posts($query_string . '&cat=-5'); } ?>

Notice the ‘=-5‘ this tells the homepage not to display posts from the post category id ’5′.

If you want to stop more than one category from being displayed just separate with a comma and write ,-# , where # is the id number of the category – see below.

<?php if ( is_home() ) { query_posts($query_string . '&cat=-5,-3'); } ?>

To revert back to showing posts from all categories just change it back to

<?php if ( is_home() ) { query_posts($query_string . '&cat'); } ?>
Posted in Web Tips & News | Leave a comment

WordPress – TwentyTen theme Tip: Menu Divider or Separator using CSS and Image Backgrounds

Using WordPress TwentyTen theme?
What to use an image to separate the top-level menu items?
Find out how below, using CSS and a background image on the menu list.

First off here is my slightly modified Twenty Ten menu area.
I’ve added a wine background colour and used Cufon to display a nice menu font.

Here is the default menu.

I want a dot image to be inserted between each menu link, to separate them, and gernerally improve the overall look. Here is the image I have used – it is a transparent .png dot image.

In order to achieve this you can modify the CSS by adding a background image to the menu.li. But make sure that #access .menu-header ul, div.menu ul is set to list-style: none; so there are no conflicts

#access .menu-header ul,
 div.menu ul {
 margin: 0;
 list-style: none;
 }
#access .menu-header li, div.menu li
 {
 float: left;
 position: relative;
 padding-left: 18px;
 background-image:
url(http://liviah.com/wp-content/uploads/2012/01/dot-separator.png);
 background-repeat: no-repeat;
 background-position: 0 .2em;
 }

However that puts an image in front of every menu listing, and for asthetic reasons we want to remove the one to the left of HOME.

So we set the background of that menu item to ‘none’. Generally in all CSS lists, the first bullet is called ‘first-child’.
Let’s set the background to none for that bullet. See below.

div.menu li:first-child
 {
 background:none;
 }

Hopefully you find this of some use. Any queries drop me a line or comment below.

Posted in Web Tips & News | Leave a comment

Photo Guide to Fuengirola, Malaga, Spain

After a recent visit I was surprisingly impressed and decided to build a website to give others an idea of what is in store in this Andalucian town. It’s only just registered so there’s nothing really up there yet but visit www.fuengirola-malaga-spain.com over the coming months so see how it goes.

Posted in Recent Work | Leave a comment

Tiger Garden – Indian Restaurant, Eton

Website for an Indian restaurant in one of the oldest buildings in Eton, Tiger Garden.

The Tiger Garden Restaurant is in the heart of Eton, a stone’s throw of the River Thames, between the historic buildings of Eton College and Windsor Castle.

Visit this site by going to www.tiger-garden.co.uk/

Posted in Recent Work | Leave a comment

Europe V Facebook campaign

Interesting article about the Europe V Facebook campaign. Worth a read for anyone who posts their life up there. I don’t think I would even want my own family members knowing as much about my life as Facebook potentially can.

I chose to delete my Facebook profile about 2 years ago and I don’t regret it.

http://www.irishtimes.com/newspaper/weekend/2011/1015/1224305819740.html

 

Posted in Web Tips & News | Leave a comment

My Yoga Body – Yoga Studios and Wellness Spa

The ‘hottest yoga studio in dublin’ wanted a new ‘hot’ website to match their ethos and approach to physical well-being.
Based in Dun Laoghaire, South Dublin their hot yoga studios offer Bikram Yoga, a practice that includes 26 specific postures in a room heated to 105º F (40 Celsius) and a wider-range of different yoga practices, at MYB studio all classes are between 80-90º F (26-29 Celsius).

Check them out at www.myyogabody.ie

Posted in Recent Work | Leave a comment

Ryle and Company


A web site update for an Interior Design firm, Ryle and Company, based in Newtownmountkennedy, Co. Wicklow.

They offer a huge range of upholstery fabrics, custom-build headboards (for adults and kids), Farrow & Ball paints and an interior design service to boot.
What more could you ask for from this artistic bunch.
Check out their retail store in Fishers of Newtownmountkennedy or visit the website at
www.ryleandcompany.ie

Posted in Recent Work | Leave a comment

Building Life Consultancy

A new web site for an Environmental Architectural Consultancy Firm in Dublin.
Click here to Visit the web site

Posted in Recent Work | Leave a comment

Softlight – Wedding Photography

A web site and course booking system for a local Photographer.
Visit the site at softlight.ie

Posted in Recent Work | Leave a comment

Lower Heating Bills .ie

Just launched a website for a External/Internal Insulation provider and a Plumber who wanted to promote themselves as a joint offering to make life easier for consumers who wish to avail of the new Better Energy Homes Scheme and the grants provided.

Visit Lower Heating Bills

Posted in Recent Work | Leave a comment