Sydney Website Design    CMS    Database Development    Search Engine Optimisation (SEO)
Sydney Web Design, Web Design Sydney, Website Design, CMS, Database Development, SEO, Search Engine Optimisation.

Posts Tagged ‘Website Design’

Multiple Sidebars in WordPress.


Saturday, February 12th, 2011

How do you have multiple sidebars set up in wordpress? Easy. WordPress has a built in function for it.

If you are asking this question you would have by now seen <?php get_sidebar(); ?> written where the sidebar gets inserted. Well the function actually looks for a page that starts with sidebar and ends in .php. If no paramaters are passed in the function that is exactly what it returns – sidebar.php.

If you have multiple sidebars you will set paramaters to find the other sidebars.
Try this <?php get_sidebar( $name ); ?>

If you gave $name the value of “home”, what it is doing is asking the function to get a file called sidebar-home.php because the function appends sidebar- to any paramater passed.

That way you can set up your files like sidebar-1.php, sidebar-2.php and sidebar-3.php and have an if statement do the traffic work on the page that is deciding on which sidebar to use, or just slot the correct code in the correct spot if they are all to be shown together.

Check out the reference at WordPress.org CODEX – http://bit.ly/v4ZXu

Faux Columns – How To


Tuesday, February 8th, 2011

Recently I had a job that required two verticle columns to end at the same length and I had to do it using CSS. The left side was a side menu with a wider right column as the main content. They were to meet at a footer at the same depth.

Wow! – what a problem that turned into. It was the first time that I found myself not being able to use tables and I couldn’t find a solution anywhere. I searched Google and found many articles but none were a true solution.

There were many that used javascript to mathematically calculate the longest length and make the other the same lenght. Sounds great. I tried a few of the examples and none were compatible with the javascript already utilised in this project. I could have probably forund a JS solution but I was running out of time.

They all had CSS solutions that worked in SOME browsers and not others. Anyone that knows me knows that this is not a solution that I would accept. There were others that used CSS/Javascript/HTML/etc., tricks but were likely to fail in future html5 browsers so they too were ruled out.

Then it struck me.

I could make a wrapper div around the 2 columns and create FAUX COLUMNS with a graphic. I could use CSS to set the background of the wrapper to go from top to bottom and that way it would look like the colums ended at the same depth. I would then float each column left or right and position them correctly over the background column graphic.

faux columns end at same depth no matter what!

faux columns end at same depth no matter what!

You will notice that the first image in the diagram above is my FAUX COMLUMNS background – so it is 100% wide and as thin as possible – the real one is only 1 pixel deep. Then it is made into a bkg and the results are shown above.

It works great and I can’t see one drawback from using this method. It is quick and simple and works. Having said that, if you have a better solution please post it here for all to see.

Google accuses Bing of cheating.


Monday, February 7th, 2011

It seems as if the feud Between Microsoft and Google is about to escalate. Google has now said it has proof that Microsoft’s search engine Bing has been copying its search results and re-publishing them as its own.

Google apparently entered a misspelled word ‘hiybbprqug’ and created fake results for it. The same results appeared later on the Bing search engine proving that they has in some way at least copied the unique to Google result.

A statement made by Bing vice president Harry Shum compared Google’s method of investigation to techniques used in novels.

We will follow this story closely and bring you the results later this month.

Ball Pool – javascript project


Sunday, January 30th, 2011

I wanted to share this cool javascript project with you. It is a fun page where you fill up the window with balls by clicking anywhere and can throw the balls around by clicking and dragging.

I especially like the SHAKE feature where you can shake your browser and all the balls move.

Click here to start playing.

Best Website Hosting in Sydney – Ilisys


Saturday, January 29th, 2011

DotCom Promotions recommends that you use Ilisys as your web host for many reasons. We have been using them now for over 7 years and have never had one problem with them.

We have found their servers to be extremely reliable, fast and easy to configure to any situation.

The staff are very helpful and are truly professional and knowledgeable in every circumstance that we have ever needed help. They answer the phones quickly and notify of any service maintenance schedules. We are extremely happy with their products.

If you are smart, you will switch to this amazing company and I honestly believe that once you join up you will never leave.

Call me on (02) 9957 3337 if you want a personal reference on Ilisys or any further information or visit their website directly at www.ilisys.com.au.

DotCom Promotions – Sydney Web Design blog is proudly powered by WordPress
Entries (RSS) and Comments (RSS).
Privacy Policy | Terms of Use | Sitemap Designed and Developed by DotCom Promotions © 2009