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
/** Customize the footer */ | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5); | |
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15); | |
function child_custom_footer() { | |
if(is_front_page()) {?> | |
<footer> | |
<!-- Home page footer --> |
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
/** Load scripts on Portfolio page */ | |
add_action('genesis_after_footer', 'child_load_portfolio'); | |
function child_load_portfolio() { | |
if(is_page('Portfolio')) { | |
wp_register_script( 'isotope', get_bloginfo('stylesheet_directory').'/lib/js/jquery.isotope.min.js' ); | |
wp_enqueue_script ( 'isotope' ); | |
} | |
} | |
/** Isotope vars */ |
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
/** Remove script loading from header */ | |
add_action('wp_enqueue_scripts', 'child_deregister_scripts'); | |
function child_deregister_scripts() { | |
wp_deregister_script( 'jquery' ); | |
wp_deregister_script( 'jquery-ui' ); | |
} | |
/** Load scripts before closing the body tag */ | |
add_action('genesis_after_footer', 'child_script_managment'); | |
function child_script_managment() { |
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
/** 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); | |
function child_custom_header() { | |
if (is_front_page()) { ?> | |
YOUR HTML HERE | |
<?php } | |
elseif (is_page() || is_search() || is_archive() || is_home()) { ?> |
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
html, body { | |
height: 100%; | |
} | |
/*Opera Fix*/ | |
body:before { | |
content:""; | |
height:100%; | |
float:left; | |
width:0; |
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
a { | |
color: #333; | |
transition: color 0.2s linear; | |
-o-transition: color 0.2s linear; | |
-moz-transition: color 0.2s linear; | |
-webkit-transition: color 0.2s linear; | |
} | |
a:hover { | |
color: #289dd6; |
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
@media (-webkit-max-device-pixel-ratio: 1), | |
(max-resolution: 119.9dpi) { | |
.logo { | |
background:url(images/example.jpg); | |
} | |
} | |
@media (-webkit-min-device-pixel-ratio: 1.1), | |
(min-resolution: 120dpi) { | |
.logo { |
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
.logo { | |
background: url(images/example.jpg); | |
} | |
@media (-webkit-min-device-pixel-ratio: 2), | |
(min-resolution: 192dpi) { | |
.logo { | |
background: url(images/[email protected]); | |
background-size: 100px 100px; | |
} |
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
<img src="http://www.example.com/images/image-<?php echo rand(1,7); ?>.jpg"> |
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
/** Set up custom taxonomy query */ | |
function custom_taxonomies_terms_links() { | |
global $post, $post_id; | |
// get post by post id | |
$post = &get_post($post->ID); | |
// get post type by post | |
$post_type = $post->post_type; | |
// get post type taxonomies | |
$taxonomies = get_object_taxonomies($post_type); | |
foreach ($taxonomies as $taxonomy) { |
OlderNewer