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
/* Header Items and Content Items and Footer Items*/ | |
#content.col-full, #header, .nav-cont, #wrapper, #footer-widgets { | |
margin-left: auto; | |
margin-right: auto; | |
} | |
@media only screen and (min-width: 960px){ | |
/* | |
* |
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
// Replace WooThemes Breadcrumbs with Yoast breadcrumbs | |
add_action( 'init', 'hh_breadcrumbs' ); | |
function hh_breadcrumbs() { | |
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ); | |
add_action( 'woocommerce_before_main_content','hh_yoast_breadcrumb', 20, 0); | |
function hh_yoast_breadcrumb() { | |
if ( function_exists('yoast_breadcrumb') && !is_front_page() ) { | |
yoast_breadcrumb('<p class="breadcrumbs">','</p>'); |
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
/* Responsive Top Nav Toggle */ | |
#responsive-icons { | |
position: absolute; right: 0px; top:10px; z-index: 5000; font-size: 30px; | |
} | |
#responsive-icons a { | |
margin-right: 10px; | |
} |
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 | |
// Settings | |
global $BambooPlugin; // we'll need this below | |
$default_plugins = $BambooPlugin->get_setting('req_plugins_arr','array'); | |
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 | |
public function save_settings() { | |
if( isset($_REQUEST["{$this->prefix}_setting"]) && check_admin_referer("save_{$this->prefix}_settings","{$this->prefix}_save") ) { | |
$new_settings = $_REQUEST["{$this->prefix}_setting"]; | |
foreach( $new_settings as $setting_name => $setting_value ) { | |
foreach( $setting_value as $type => $value ) { | |
echo '<br> t1 <br>'; | |
if( is_array($value) ) { |
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 placeholder for subscribe form | |
$(".widget_ns_mailchimp input").focus(function(){ | |
showEmptyLabels(); | |
$(this).siblings("label").stop().fadeOut(); | |
}); | |
$(".widget_ns_mailchimp input").blur(function(){ | |
showEmptyLabels(); | |
}); | |
$(".widget_ns_mailchimp label").bind("click", function() { | |
$(this).siblings("div").find("input, textarea").focus(); |
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
# END WordPress | |
AuthType Basic | |
AuthName "restricted area" | |
AuthUserFile /home/rstage/public_html/.htpasswd | |
require valid-user |
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_action ('template_redirect','hide_fe'); | |
function hide_fe() { | |
if (!is_admin()) { | |
wp_redirect(admin_url('/', 'http'), 301); | |
} |
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 | |
// Cart - Basket Text | |
function wpa_change_my_basket_text( $translated_text, $text, $domain ){ | |
if( $domain == 'woothemes' && $translated_text == 'Cart:' ) | |
$translated_text = 'Basket:'; | |
return $translated_text; | |
} |
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 | |
// add home page content | |
add_action ('after_primary','custom_homepage_content'); | |
function custom_homepage_content() { | |
if (is_front_page()) { |
OlderNewer