This file contains 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 | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
include_once(TEMPLATEPATH . '/functions.php'); | |
class thesis_child_theme_example extends thesis_custom_loop { | |
public function __construct() { |
This file contains 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 | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
include_once(TEMPLATEPATH . '/functions.php'); | |
class thesis_child_theme_example extends thesis_custom_loop { | |
public function __construct() { |
This file contains 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 | |
// Iinitial sanity check | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
// Bring in the main functions file so we have access to all the yummy Thesis goodness | |
include_once(TEMPLATEPATH . '/functions.php'); | |
// we encourage you to set up a class. classes are a VERY important part of 2.0, so you need to be familiar with them. |
This file contains 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
/*---:[ body ]:---*/ | |
body { background: #000; } | |
/*---:[ menu ]:---*/ | |
.menu { list-style: none; } | |
.menu li { float: left; } | |
.menu li a { text-decoration: none; display: block; } | |
/*---:[ post image fix from @kristarella ]:---*/ | |
.post_image { max-width: 100%; height: auto; } |
This file contains 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
/*---:[ body ]:---*/ | |
body.custom { background: #000; } |
This file contains 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
<DOCTYPE html> | |
<html> | |
<head> | |
<title>nameplate</title> | |
</head> | |
<style> | |
#angle { | |
width: 150px; | |
height: 150px; | |
background: #626262; |
This file contains 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
# Filename-based cache busting | |
# taken from https://github.com/h5bp/html5-boilerplate/ | |
# This rewrites file names of the form `name.123456.js` to `name.js` | |
# so that the browser doesn't use the cached version when you have | |
# updated (but not manually renamed) the file. | |
<IfModule mod_rewrite.c> | |
Options +FollowSymlinks | |
RewriteEngine On |
This file contains 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
// Add Theme Editor to Admin Bar (to save time!) | |
function admin_bar_theme_editor_option() { | |
global $wp_admin_bar; | |
if ( !is_super_admin() || !is_admin_bar_showing() ) | |
return; | |
$wp_admin_bar->add_menu( | |
array( 'id' => 'edit-theme', | |
'title' => __('Edit Theme'), | |
'href' => admin_url( 'theme-editor.php') | |
) |
This file contains 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
<!-- add this piece of code to the functions.php file --> | |
add_filter( 'default_content', 'my_editor_content' ); | |
function my_editor_content( $content ) { | |
$content = "I want this text to be automatically included."; | |
return $content; | |
} | |
?> | |
<!-- Thanks WPrecipies.com --> |