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
734
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
877
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
866
posted 14 years ago by math89
Add the following code to the end of the functions.php file. Et voilà !
1
901
posted 14 years ago by math89
All it takes is a stylesheet and a small function in the theme’s functions.php file
1
775
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
870
posted 14 years ago by math89
Remove the “Please upgrade now†message in the Wordpress Dashboard
Paste the code in your functions.php
0
676
posted 14 years ago by math89
It allows you to automatically get the first image from the current post, and display it.
2
3898
posted 14 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
904
posted 14 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
924
posted 14 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
727
posted 14 years ago by math89