Skip to content

Instantly share code, notes, and snippets.

https://font-display.glitch.me/
Anyone affected by Google Chrome stopping .dev URLs from working: as a quick fix do this
Create an overwriting google-chrome executable at:
sudo nano /usr/local/bin/google-chrome
Make the content this:
#!/bin/bash
anyway, commands should be as follows:
nano ~/bin/deploy
then paste the following into the file and save it:
#!/bin/bash
dep --file=./deployment/development/deploy.php deploy develop
CTRL+X, then Y, then ENTER (to save and quit nano)
##### Setting Up Foundation #####
---------------------------------
1)Download foundation at:
http://320press.com/wp-foundation/v2-0-foundation-wordpress-theme/
(check downloads for already downloaded version).
2)Drop wp-foundation folder into themes file of project
3)create style.css in child theme and add the following code:
div {
position:relative;
}
img {
bottom:0;
margin:auto;
position:absolute;
top:0;
}
.image {
@clare485
clare485 / featured images
Created December 3, 2013 14:54
wordpress multiple featured images
@clare485
clare485 / custom meta boxes
Created December 3, 2013 14:46
custom meta boxes
http://wordpress.org/plugins/meta-box/
https://github.com/humanmade/Custom-Meta-Boxes
@clare485
clare485 / example_custom_post_type.php
Created December 3, 2013 14:30
custom post type example
<?php
add_action('init', 'create_product_post_type');
function create_product_post_type() {
register_post_type('product' , array(
'labels' => array(
'name' => __('product'),
'singular_name' => __('product')
),
_The Options Framework Theme has all the code included to build a out a full featured options panel. It’s a bundled version of the Options Framework Plugin for those folks who want to build the options directly into the theme (rather than relying on a plugin).
Zeus redirection can often confuse people as it looks far more complicated than mod_rewrite under Apache. Below I've included some examples of common rewrites that you may find useful. All of these examples just need to be placed into a file named rewrite.script at the root of your website (where the index file is).
Redirect to a Different Website
If you want to redirect one website to another on the Zeus Web Server platform, simply use the following code :
insensitive match URL into $ with ^/(.*)
if matched then
set OUT:Location = http://www.othersite.com
set RESPONSE=301