Profile
Achievement

math89's Recent Snippets
- All /
« Prev 1 Next »
You have a RGB value and want to convert it into Hexadecimal mode, here’s how to do it using JavaScript.
0
810
posted 14 years ago by math89
Paste the code in a file named style.php. Don’t forget to include your css files . Once done, open your HTML document and import style.php as you’ll import a css stylesheet.
3
957
posted 14 years ago by math89
Turn a html source into a full text document by removing all html tags and other unneeded code.
0
937
posted 14 years ago by math89
Add the following code to the end of the functions.php file. Et voilà !
1
989
posted 14 years ago by math89
All it takes is a stylesheet and a small function in the theme’s functions.php file
1
845
posted 14 years ago by math89
Replace the default WordPress “W†logo in the administrative header with a custom one. Add this code inside the theme’s “functions.php†file.
0
956
posted 15 years ago by math89
Remove the “Please upgrade now†message in the Wordpress Dashboard
Paste the code in your functions.php
0
748
posted 15 years ago by math89
It allows you to automatically get the first image from the current post, and display it.
2
4108
posted 15 years ago by math89
Redirect to a subfolder (blog) in a search engine friendly way using .htaccess. Change “YourDomain.com†to your domain name.
1
999
posted 15 years ago by math89
Here is a nice snippet to open links in pop-up windows. Just add the popup css class to your link to make it work.
3
1011
posted 15 years ago by math89
The target="blank" attribute is not valid XHTML 1.0 Strict.
using jQuery, you can achieve the same functionality without having validation problems.
0
797
posted 15 years ago by math89