The other day I ran into a problem. I was designing a WP theme that had a widgetized sidebar. The h3 in the page widget showed correctly in Firefox, but not Internet Explorer. I spent a ton of time on the theme so I wasn’t wanting to search the net to find the css fix that displayed correctly in both Firefox and IE so I made a stylesheet for Firefox and a stylesheet for IE. This is how I did it. In the header just below the header hook, I placed the following code:
1
2
3
4
5
6
7
8
9
10
| <?php wp_head(); ?>
<?php $browser = $_SERVER['HTTP_USER_AGENT']; ?>
<?php if (strstr($browser, "IE")) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/ie-style.css"
type="text/css" media="screen" />
<?php }else{ ?>
<link rel="stylesheet" href=<?php bloginfo('stylesheet_url'); ?>
type="text/css" media="screen" />
<?php } ?> |
Line 3 returns the user’s browser information. Lines 4 and 5 tells the browser if you are IE, then use the IE style sheet. Normally to retrieve the style sheet you would just put the following code in your header:
<?php bloginfo('stylesheet_url'); ?>
,but since I needed to use multiple style sheets. I used
<?php bloginfo('template_url'); ?>/ie-style.css
to locate the first style sheet. This code tells the browser that the IE stylesheet is located in the folder where the WP theme resides. Line 7 and 8 then tells the browser if you are Firefox, use the default style sheet.
I figured out how to do this for WordPress after reading this post. I then just thought about how to apply it to WordPress and the above solution is what I came up with. I hope this helps someone. And if you have any better workarounds than this, please feel free to share.
November 11th, 2009
Webpuffs is a clean, widgetized, and Adsnese ready web 2.0 theme. Unlike most free themes, this theme uses an image as a logo. If you need a logo created that looks like the current logo, let me know and I’ll do it for $15. If you have any trouble with the theme, or have any questions please leave a comment on this post. I plan on using this post for documentation. As the questions come, I will add the info. I’d add all the documentation now, but I’m limited to time.
Oh yeah, Webpuffs theme is also valid XHTML and CSS. Thanks, and enjoy the theme.
View Demo | Download Here
August 1st, 2009

I just opened up a Blogspot account. This post was written on my blogspot blog. I just opened up this blog to show others how to import a Blogspt blog into Wordpress. I will probably never use this Blogspot blog again. Here’s how to import a Blogspot blog.
- Login into your Wordpress admin.
- Under Tools click Import.
- Click Blogger.
- And then follow the directions.
It will ask you if you want to allow your Wordpress blog access to your blogger site. Allow it and then continue on. It’s that simple.
You can see the post at my Blogspot blog here:
http://nerdysetups.blogspot.com/2009/05/how-to-move-your-blogspot-blog-to.html
If you have problems doing this yourself, I can do it for you for $30. Fill out the form here.
May 26th, 2009
First off, the pupose of this post is so you can edit the encrypted footer for design purpose and not to erase the sponsor links. I never tried to to decrypt a footer before, but I told someone that I would fix the right nav bar on their theme and it just so happened that the code for the right nav bar was encrypted into the footer. The theme they were using is called Sleek Car. You can download it here if you like it. Over all the theme was coded very well. The style sheet was labeled and layed out nicely, but the right nav bar being encrypted would probably cause a lot of people to give up on the theme and stop using it. This is how I decrypted it and fixed the right nav bar. Read the rest of this entry »
May 10th, 2009
I’ve been messing around with Wordpress, various shopping carts and other scripts for years. I really enjoy helping people and I’m in need of some more income so I decided to take the knowledge that I have and apply it to offering these services. I hope to also be able to add a few informative blog posts here and there.
Enjoy!
May 2nd, 2009