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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="v2p.js"></script> | |
<style type="text/css" media="all"> | |
body { margin: 0; } | |
div { | |
background: #fa7098; | |
} |
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
// if no title then add widget content wrapper to before widget | |
add_filter( 'dynamic_sidebar_params', 'check_sidebar_params' ); | |
function check_sidebar_params( $params ) { | |
global $wp_registered_widgets; | |
$settings_getter = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]; | |
$settings = $settings_getter->get_settings(); | |
$settings = $settings[ $params[1]['number'] ]; | |
if ( $params[0][ 'after_widget' ] == '</div></div>' && isset( $settings[ 'title' ] ) && empty( $settings[ 'title' ] ) ) |
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
/* | |
Changing Genesis H1 Post Titles to H2 | |
*/ | |
add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 ); | |
function ac_post_title_output( $title ) | |
{ if ( is_home() || is_archive() ) | |
$title = sprintf( '<h1 class="entry-title"><a href="' . get_permalink() . '">%s</a></h1>', apply_filters( 'genesis_post_title_text',get_the_title() ) ); | |
return $title; |
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
<section class="slider"> | |
<div class="flexslider"> | |
<ul class="slides"> | |
<li><img src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
<li><img class="lazy" data-src="http://imgur.com/..." alt=""></li> | |
</ul> | |
</div> |