This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* don't copy php tag above | |
//* Genesis Custom header | |
remove_action('genesis_header', 'genesis_do_header'); | |
remove_action('genesis_header', 'genesis_header_markup_open', 5); | |
remove_action('genesis_header', 'genesis_header_markup_close', 15); | |
add_action('genesis_header', 'custom_header'); | |
function custom_header() { ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* don't copy above php tag | |
//* xhtml | |
remove_action( 'genesis_post_title', 'genesis_do_post_title' ); | |
//* html5 | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
//* Remove home page title (XHTML Version) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add top bar | |
add_action( 'genesis_before', 'top_bar' ); | |
function top_bar() { ?> | |
<div id="top"> | |
<div class="wrap"> | |
<!-- insert code here --> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Originally found: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */ | |
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add to functions.php | |
//* Found here: http://www.stampede-design.com/blog/2010/12/disable-html-auto-formatting-in-wordpress/ | |
//* Disable WordPress autop | |
remove_filter('the_content', 'wpautop'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* do not copy this tag | |
//* Head additions | |
add_action( 'wp_head', 'head_additions'); | |
function head_additions() { ?> | |
<!-- insert html here --> | |
<?php } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change php upload filesize limit | |
php_value upload_max_filesize 10M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Originally found: http://www.nikolakis.net/2011/07/change-the-height-of-all-list-items-to-float-properly-with-jquery/ | |
/* example HTML | |
<ul class="list"> | |
<li>some information</li> | |
<li>some more information</li> | |
<li>even more information</li> | |
</ul> | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /opt/bitnami/ctlscript.sh restart apache |