Web Hosting and Web Design

Monthly Archives: February 2011

Quick Tip

QUICK TIP: Enable Gzip compression server-side whenever possible; it shrinks the size of files such as CSS and JavaScript without removing any of the content.

Post Tagged with
Read more

Browser Sizes and Buttons

A few handy external links… BROWSER SIZES http://browize.com http://ipadpeek.com http://resizemybrowser.com BUTTONS http://www.catswhocode.com/blog/top-10-css3-buttons-tutorials http://webdesignledger.com/tutorials/12-excellent-css3-button-and-menu-techniques http://www.performable.com/buttons/ http://css-tricks.com/css3-button-maker/

Post Tagged with ,
Read more

The new selectors

If you have ever worked with CSS before, you would already know the basic selectors that are available. But there are many more that you may not be aware of as yet. Here are a few that may spike your interest. An ADJACENT SELECTOR [php]ul + p { color: #cccccc; }[/php] This will only apply [...]

Post Tagged with ,
Read more

@import or link – which to use for your CSS

Most times when I have created a design, I use the standard format for calling my CSS file, namely [php]<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />[/php] This is placed in my header file before the head tag and it works every single time. However, like me, you have probably seen the @import call [...]

Post Tagged with ,
Read more

Flash – it keeps getting in my way!

Ever had the problem where you have a Flash element on your site and for some reason it hides your other elements on the page? Not sure? Well, here is an example. I had a drop down menu that was sitting just above a simple rotating image highlight [driven by Flash]. The trouble was, every [...]

Post Tagged with
Read more

A few quick CSS/HTML facts

Most of you will know these, but just in case, they are handy all the same… To shorthand your padding and margins, instead of using: [php]margin-top: 10px; margin-right: 4px; margin-bottom: 20px; margin-left: 16px;[/php] just do the following: [php]margin: 10px 4px 20px 16px;[/php] As you can see, the properties are clockwise. ———————————————– And in your use [...]

Post Tagged with , , ,
Read more

Post Revisions and Autosave

I am not sure of the exact version number as to when the post revisions and autosave feature was applied to WordPress, but it was some time ago now. I have to say from the outset, that it is not one of my favourite features as it seems to get in the way more than [...]

Read more

User contact info – modify

For as long as I can remember, WordPress has had three social links included within the user profile section. These are ‘Aim’, ‘Yim’ and ‘Jabber’. Now, I am not saying these are not useful, but to be honest, in all my work with WordPress over the years – dealing with literally thousands of clients – [...]

Post Tagged with , ,
Read more

How to add default content to your posts

If you have a need to add the same content to the end of every post, say for something such as letting visitors know of a new project etc, then this piece of code is for you. Add the following to the functions.php file and change the text to suit your needs. [php]add_filter( ‘default_content’, ‘my_editor_content’ [...]

Post Tagged with
Read more

Ellipses

Sometimes, the excerpt function just does not cut it and you might think to yourself, I wish I could replace those [...] three dots with something more useful. Well, worry no more… Just add this code to your functions.php and change the ellipses to whatever you wish. [php] function trim_excerpt($text) { return rtrim($text,’[...]‘); } add_filter(‘get_the_excerpt’, [...]

Post Tagged with ,
Read more

Web Hosting and Design with Support - now there's a novel idea!