Design

Minnesota Web Developer

A little something about everything...

How to target Safari only using CSS and Javascript while keeping your page W3 compliant and completely valid

Here is a neat little trick you can use to target Safari and make it behave while fixing cross browser layouts. This method will allow you to keep a page valid and it will allow you to only target Safari.

First thing you want to do is use javascript to inject a css file for all browsers that support webkit with this code: 

Now, like I stated above this will target all browsers that currently support webkit and add support for it in the future so you cannot rely on only this. So now you need to create the css file and add some code that is Safari specific by using the double # method. Some people will ask, why not just include the double # to begin with? And the simple answer is that it will cause your CSS not to validate.

Here is the example css code that will target only Safari

Enjoy!

How to add ads to Telligent Community Server 2007, 2008, 2008.5

add this code to the top of the master page or template you wish to include ads on:

Now add this code to the area of the page you want your ads to be displayed:

How to create Custom SEO for each content page of the Community Server platform?

In four easy steps:

  1. Create a file in the "/"directory called siteurls_override.config
  2. Copy the Content folder in "\themes\theme-name\" and rename it the same as you made the folder name in the "path" field above. Go into this folder and name it what ever you entered for the "page" field above. (this allows some added SEO by url name also.
  3. open the .aspx file in the "themes\theme-name\foldername" and change the line from

    to
  4. Go to Themes\theme-name\Common\ and copy rename the master.MASTER file and rename it to (pagename).MASTER you can now open and edit the HTML for title and meta in this file.

*hint* it goes directly after this code:

SEO code should be in this format:

So in 4 simple steps you've made Community Server SEO Friendly for content pages!

Also keep in mind that Google no longer looks at keywords and only lightly at meta description now. You should focus on the content of your site and keep in mind that the SEO code only helps your page position if it matches the rest of your page content.