Place the following tag in your <head>
<meta name="viewport" content="initial-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no" />
Below is our current practice for using Git (the technology) & Github (the repository) when collaborating on projects. This process assumes that you already have Git installed & configured, and there is an existing project repository on Github with a "development" branch already setup.
If you do not have Git installed, follow these instructions.
This process also assumes that you are using the command line, however most of these tasks can be performed with a desktop client like Github for Mac or Tower.
1.) Open terminal and locate the project directory you wish to use.
Get your Local Web Development Server Up & Running on OSX 10.9 Mavericks
osx mavericks 10.9
With the new OS out of the bag, getting the AMP stack running on OSX 10.9 Mavericks is is pretty much the same as on OS X Mountain Lion 10.8. This tutorial will go through the process on getting Apache, MySQL, PHP and phpMyAdmin running on the new Maverick Californian driven OS.
If you had your local development already set up in OSX 10.8 and simply did an upgrade to 10.9, your MySQL, Apache and phpMyAdmin settings should all be good, you just need to enable PHP
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
function admin_css() { | |
$path = get_template_directory_uri(); | |
echo "<link rel='stylesheet' href='" . $path . "/admin.css' />"; | |
} | |
add_action( 'admin_head', 'admin_css' ); |
Gruntfile.js
, set connect server's hostname in the options to 0.0.0.0
to allow access to the server from outsidegrunt.initConfig({
// The actual grunt server settings
<head> | |
<!-- Disable print & right-click behavior --> | |
<style type="text/css" media="print"> img { display: none; } </style> | |
<script> document.oncontextmenu = new Function('return false'); </script> | |
</head> |
# Redirect individual files | |
Redirect 301 /oldfile.html /newfile.html |