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
/* Horizontal line behind title | |
--------------------------------------------- */ | |
.title-wrapper { | |
border-bottom: 3px solid #10222b; | |
text-align: center; | |
margin-bottom: 41px; | |
} | |
h2.horizontal-line { |
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
<div class="title-wrapper"> | |
<h2 class="horizontal-line">This is an example title</h2> | |
</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
/* ## Responsive Vimeo Video | |
--------------------------------------------- */ | |
.video-container { | |
margin-bottom: 28px; | |
} | |
.responsive-video { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 0px; |
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 | |
//* Shortcode to output video embed with responsive wrapper | |
function dee_video($atts, $content = null) { | |
extract(shortcode_atts(array( | |
'width' => '500', | |
), $atts)); | |
$output = '<div class="video-container" style="max-width:' . $width . 'px;">'; |
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 | |
remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); | |
add_action('genesis_before_content', 'genesis_get_sidebar'); | |
?> |
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 | |
/* | |
Author: Doug Edgington | |
Description: modified version of Woocomemrce SSL functionality, forces ssl on Woocommerce pages and two additional custom pages | |
*/ | |
function dee_ssl_template_redirect() { | |
if ( ! is_ssl() ) { | |
if ( is_checkout() || is_account_page() || is_page(48) || is_page(64) ) { |
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 | |
/* | |
Author: Doug Edgington | |
Description: Shortcode to display WordPress bookmark links (Blog Roll). | |
Used to add links to a page rather than a sidebar using the WordPress links widget. | |
*/ | |
function dee_display_bookmark_links() { | |
$args = array( |
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 | |
/* | |
Author: Doug Edgington | |
Description: Shortcode to display a minimum order total required message to | |
users in a specific user role on checkout page when using Woocommerce | |
*/ | |
function dee_minimum_order_total_message() { | |
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 | |
/* | |
Author: Doug Edgington | |
Description: Require a minimum order total in Woocommerce for a user role | |
*/ | |
function dee_minimum_order_total_required() { | |
if( is_user_logged_in() ) { |
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 | |
/* | |
Author: Doug Edgington | |
Description: If sidebar is active, output sidebar above header with the Genesis Framework | |
*/ | |
add_action( 'genesis_before_header', 'dee_do_top_message' ); | |
function dee_do_top_message() { | |
if ( is_active_sidebar( 'top-message' ) ) { | |
echo '<div id="top-message">'; |
NewerOlder