Search
If you've got an idea or some
interesting news - let us know

Sexy CelebritiesMovie and Television NewsVideo Games News

Currently browsing the tag: XHTML

Site Updates Making Buzzfeed XHTML Compliant

One thing I find with Wordpress is that with each plugin you add, you have extra hours involved in making the code XHTML compliant. I still have yet to find a way around the YouTube video ad code problem that I mentioned in a previous post. Sigh. This time around I added a plugin to a few of my sites for Buzzfeed and sure enough…there were compliance issues.

First of all, the CSS styles for the images get located into the page code in the same place where Buzzfeed shows up. This causes a problem so I copied and pasted the styles into my own style sheet and then deleted that section from the template.php file located in the plugin folder. The next problem I ran into had to do with the item titles. If a Buzzfeed item was called “Jim’s Computer,” then the Alt tag for the image would go all screwy. This is because they used apostrophes all through the PHP plugin echo code.

Again you want to edit the same template.php file and look for the following section in the 3rd echo set:

You want to change this to the following and then don’t close the file yet. We won’t be done.

Notice I only changed the apostrophes to a \” on each side, but now it will work fine. If a feed item is “Jim’s Computer” then it won’t be a problem.

The final step is to find the “BuzzFeed” link at the top of this entire block of code and the “Add To Your Site” at the bottom. They forgot to add the closing anchor tags on these links which also screws up the compliance. Put them in right after the text I quoted above and then save the file and upload. Your site should be compliant now. Cheers!

Popularity of this post: 69%

Category Flagged: Site Updates
Comments Off

Currently browsing the tag: XHTML

Site Updates YouTube AdSense is not valid XHTML

I haven’t updated here for some time now, but if you didn’t know…the whole network of blogs has more writers (4 of us now) and has taken off in leaps and bounds. I’ve been continually updating the tech behind the scenes and I’m really happy with things at the moment.

I have learned that in some lower versions of IE the site looks a teeny bit funky, but I’ve decided to not worry about it. Those lazy buggers need to update their browsers! This is 2007 after all.

I will eventually write more about what I’ve done with WordPress on this blog and I’ve been thinking of releasing my modified plugins I have, such as the video plugin that allows videos from YouTube, Google, iKlips, Live Leak, Daily Motion and more all in valid XHTMl format. It super easy to post a video using the plugin, believe me.

I will say that while I’ve always worked very hard to keep all my sites fully XHTML and CSS valid, the new Google YouTube AdSense playders break that validation and as far as I’ve found…it’s not fixable. They have a div id containing your personal player account number or whatever it is and that number contains an “=” sign. There is no way around it. You need it to make the player work and if you have it, your site can’t be valid. It’s a pain in the neck that I’ll live with for a while to see how things go.

Beyond that, all my sites are completely valid. Rewriting ad code from advertisers to be valid is a pain though. I wish more companies would consider those things and just do it in the first place.

Popularity of this post: 100%

Categories Flagged: Site Updates, Geekscribe, Flickscribe, Popscribe



Add to Technorati Favorites



Page Validations: xhtml validation  css validation
Page Translation: Deutsch Espanol Francais Italiano Arabic Japanese Korean

All trademarks and copyrights on this page are owned by their respective owners.
Any comments are owned by the original poster.
Everything else copyright © 2005 - 2008 Wizard Words Blog Network

Close
E-mail It