<!DOCTYPE html> <!–[if lt IE 7 ]> <html lang=”en” class=”no-js ie6″> <![endif]–> <!–[if IE 7 ]> <html lang=”en” class=”no-js ie7″> <![endif]–> <!–[if IE 8 ]> <html lang=”en” class=”no-js ie8″> <![endif]–> <!–[if IE 9 ]> <html lang=”en” class=”no-js ie9″> <![endif]–> <!–[if (gt IE 9)|!(IE)]><!–><html lang=”pt-br” class=”no-js”><!–<![endif]–>

Here are the step-by-step instructions:
1. Create the new location or new folder example: www.examplesite.com/foldername
2. If you will be moving your WordPress core files to a new directory, create the new directory.
3. Login to your blog.
4. Go to the Administration > Settings > General panel.
5. In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
6. In the box for Site address (URL): change the address to the new location, which should match the WordPress (your public site) address (URI).
7. Click Save Settings.
8. (Do not try to open/view your blog now!)
9. WordPress 2.0 only: Delete the folder wp-content/cache.
10. Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress, and all the sub-directories, to the new location.
11.If you are using Permalinks, go to the Administration > Settings > Permalinks panel and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.
12.Existing image/media links uploaded media will refer to the old folder and must be updated with the new location. You can do this with the Velvet Blues Update URLs plugin or manually in your SQL database, by following the instructions at Tamba2′s Tutorial “Moving your weblog inside your PC”.
13.You must also check and edit ‘store uploads folder’ under Settings > Media or all your new uploads will continue to go into the old folder.
14.In some cases your permissions may have changed, depending on your ISP. Watch for any files with “0000″ permissions and change them back to “0644″.
15.If your theme supports menus, links to your home page may still have the old subdirectory embedded in them. Go to Appearance::Menus and update them.
16.Sometimes you would need to restart your server, otherwise your server may give out an error. (happens in MAMP software (Mac)).
It is important that you set the URI locations BEFORE you move the files.
(With Reference to WordPress Documentation)
To use the live “watch” feature (which will auto-refresh the CSS whenever you save your LESS code), just drop this code into your template
<script type=’text/javascript’ charset=’utf-8′>
less.env = “development”;
less.watch();
</script>
XML declaration:
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
It defines the XML version (1.0) and the encoding used (ISO-8859-1 = Latin-1/West European character set).
To further understand the concept, kindly refer to: http://xmlwriter.net/xml_guide/xml_declaration.shtml
Simply include stylesheet reference after xml declaration: <?xml-stylesheet type=”text/css” href=”stylesheet.css”?>
and do your css via tag names.
For Example:
<BOOK>
<TITLE>7 HABITS</TITLE>
</BOOK>
Inorder to do a css for TITLE simple use TITLE and write a css code for it. TITLE { /* your css code */ }
Using PHP: Use the function below to get the Current Page URL.
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].
$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
Using Javascript:
This is much simpler, just use: window.location.href or window.location.pathname;
Sometimes we need to create an anchor which when clicked not only goes to the email client with an email but also the subject and the body of the email, here is an example of such an anchor: <a href=”mailto:mailto@gmail.com?CC=cssemailto@gmail.com& Subject=SendingTextEmail&Body=TestMessage”>Send Test Email</a>
I was asked a Question, “How do i can verify whether the CSS i have written is correct or not?”, kindly use the following tools or website: Visit Validator
Let Suppose you want to replace a class with the name “active” present in the all the anchors of a div. Then simple target that div and the anchors jointly and remove that active class. To cut the story short, use; $(‘#divname a).removeClass(‘classnametoberemoved’); Hope it helps, any questions you can leave them as a comment.
Is there a way to make a background image resizeable? As in, fill the background of a web page edge-to-edge with an image, no matter the size of the browser window. Also, have it resize larger or smaller as the browser window changes. Also, make sure it retains its ratio (doesn’t stretch weird).