Hui WANG's Blog

One will, One way

Month: July, 2009

Static CSS with Dynamic Element ID

We can make dynamic CSS via PHP, but it’s a little bit complicated when just a very small modification is needed. The idea, static CSS with Dynamic element id, comes from when I am trying to render a sidebar in different pages in WordPress. I’d like to show it to you with a single line [...]

GD Library Error: imagecreatetruecolor does not exist

To solve this problem you should get gd extentioin installed and activated in PHP. Normally the gd library is availlble with PHP 4.3+ installed. However if it doesn’t exist, for linux users, type the following command in a terminal, sudo apt-get install php5-gd For those who use windows, you can find it in the ext [...]

The Best Ever Website for Learning French Grammar

I am very glad to introduce you the best ever website for learning french grammar, Tex’s French Grammar (la grammaire de l’absurde), a pedagogical reference grammar that combines explanations with surreal dialogues and cartoon images. Originally built for students at the University of Texas at Austin as a user-friendly guide to French grammar, this web [...]

Warning: Cannot modify header information – headers already sent

After adding several functions to the file functions.php, I get this warning when I try to install a plugin. This is commonly known as the “whitespace problem”. The error message typically looks something like Warning: Cannot modify header information – headers already sent by (output started at /var/www/wordpress/wp-content/themes/yamidoo/functions.php:855) in /var/www/wordpress/wp-includes/pluggable.php on line 865 The solution [...]