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
function superstore_contact() { | |
global $woo_options; | |
?> | |
<ul class="contact"> | |
<?php if ( isset($woo_options['woo_contact_number']) && $woo_options['woo_contact_number'] != '' ) { ?><li class="phone"><a href="tel:<?php echo esc_html( $woo_options['woo_contact_number'] ); ?>"><?php echo esc_html( $woo_options['woo_contact_number'] ); ?></a></li><?php } ?> | |
<?php if ( isset($woo_options['woo_contact_fax']) && $woo_options['woo_contact_fax'] != '' ) { ?><li class="fax"><?php echo esc_html( $woo_options['woo_contact_fax'] ); ?></li><?php } ?> | |
<?php if ( isset( $woo_options['woo_contact_twitter'] ) && $woo_options['woo_contact_twitter'] != '' ) { ?><li class="twitter"><a href="http://twitter.com/<?php echo esc_attr( $woo_options['woo_contact_twitter'] ); ?>">@<?php echo esc_html( $woo_options['woo_contact_twitter'] ); ?></a></li><?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_action( 'woo_nav_inside', 'woo_custom_add_secondary_menu_to_mobile_nav', 10 ); | |
function woo_custom_add_secondary_menu_to_mobile_nav () { | |
$menu_location = 'secondary-menu'; // Change this to be whichever menu location you want to add. | |
if ( has_nav_menu( $menu_location ) ) { | |
echo '<div id="' . $menu_location . '-container-mobile" class="col-full custom-menu-location">' . " "; | |
echo '<h3 class="secondary-menu">Secondary Menu</h3>'; |
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 only screen and (min-width: 768px) { | |
/* Desktop styles go below this line */ | |
#secondary-menu-container{ | |
display: block !important; | |
} | |
#secondary-menu-container-mobile{ | |
display: none !important; | |
} | |
} |
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_filter( 'wc_payment_gateway_elavon_vm_request_xml', 'wc_payment_gateway_elavon_vm_add_custom_fields', 10, 2 ); | |
function wc_payment_gateway_elavon_vm_add_custom_fields( $request_xml, $request ) { | |
$request_xml->addChild( 'ssl_name_on_card', str_replace( array( '&', '<', '>' ), '', $request->ssl_first_name . ' ' . $request->ssl_last_name ) ); | |
return $request_xml; | |
} |
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_filter( 'wc_product_documents_get_sections', 'show_documents_only_for_logged_in_users', 10, 3 ); | |
/** | |
* Don't return document sections unless there is a logged in user. | |
* | |
* @param array $sections array of sections | |
* @param WC_Product_Documents_Collection $collection the collection object | |
* @param boolean $include_empty whether to include empty sections in the result |
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' ) ) exit; | |
/*----------------------------------------------------------------------------------- | |
TABLE OF CONTENTS | |
- Theme Setup | |
- Load style.css in the <head> | |
- Load responsive <meta> tags in the <head> |
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
#slide-nav {display: none !important } | |
#slides_container { width: 960px !important } | |
.slide { width: 960px !important } | |
.slide img { width: 960px !important } | |
.slide .caption { width: 950px !important } |
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
/* DESKTOP STYLES | |
----------------- | |
Add styles inside the media query below that you only want to be applied to the desktop layout of your site */ | |
@media only screen and (min-width: 768px) { | |
/* Desktop styles go below this line */ | |
#header { | |
float: left !important; | |
max-width: 20%; | |
position: absolute !important; |
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
<script type="text/javascript" charset="utf-8"> | |
jQuery(function() { jQuery('body').hide().show(); }); | |
</script> |
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 { | |
-webkit-animation-duration: 0.1s; | |
-webkit-animation-name: fontfix; | |
-webkit-animation-iteration-count: 1; | |
-webkit-animation-timing-function: linear; | |
-webkit-animation-delay: 0.1s; | |
} | |
@-webkit-keyframes fontfix { | |
from{ opacity: 1; } |
OlderNewer