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
<!-- Place in the <head>, after the three links --> | |
<script type="text/javascript" charset="utf-8"> | |
$(window).load(function() { | |
$('.flexslider').flexslider(); | |
}); | |
</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
<!-- Place somewhere in the <body> of your page --> | |
<div class="flexslider"> | |
<ul class="slides"> | |
<li> | |
<img src="slide1.jpg" /> | |
</li> | |
<li> | |
<img src="slide2.jpg" /> | |
</li> | |
<li> |
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
<!-- Place somewhere in the <head> of your document --> | |
<link rel="stylesheet" href="flexslider.css" type="text/css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script src="jquery.flexslider.js"></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
[wooslider slider_type="instagram"] |
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
[wooslider slider_type="attachments"] |
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
[wooslider category="slide" slider_type="posts" overlay="natural" display_excerpt="false" id="4"] |
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
* Feature – New input for shipping method title (as the customer sees it) | |
* Tweak – Made the currency DP rule apply to order totals for currencies which don’t have cent values https://github.com/woothemes/woocommerce/issues/1383 | |
* Tweak – Made proceed to checkout button update totals too | |
* Tweak – Rewritten variation javascript to add scope. Please ensure that if you have a custom variable.php add to cart template, that you update them. | |
* Tweak – Classes for order info in my-account | |
* Tweak – Iconised order action buttons | |
* Tweak – Simplified order status markers | |
* Tweak – Product data tabs class change | |
* Tweak – Moved upsells above related products as they should have higher priority | |
* Tweak – Added utm_nooverride to improve tracking after paypal payment |
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
$wp_upload_dir = wp_upload_dir(); | |
$wp_upload_dir_basedir = $wp_upload_dir['basedir']; | |
$thumbnail = get_post_meta( get_post_thumbnail_id( $post_id ) , '_wp_attached_file', true ); | |
$thumbnail_path = trailingslashit( $wp_upload_dir_basedir ) . $thumbnail; |
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 | |
echo "hell world"; | |
?> |
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_filter( 'template_include', 'woocommerce_add_template_loader_product_category' ); | |
function woocommerce_add_template_loader_product_category(){ | |
global $product; | |
foreach ( get_the_terms( $product->id, 'product_cat' ) as $key => $value) { | |
locate_template( 'single-product-' . $value->slug . '.php' ,true, $require_once = true) ; | |
} |
NewerOlder