Created
August 24, 2014 01:09
-
-
Save bentasm1/d020a01d8d4c029c89d0 to your computer and use it in GitHub Desktop.
Change price font to h2 and green - /wp-content/themes/YOURTHEME/woocommerce/single-product/price.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
<?php | |
/** | |
* Single Product Price, including microdata for SEO | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 1.6.4 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
global $post, $product; | |
?> | |
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | |
<h2><font color="green"><?php echo $product->get_price_html(); ?></font></h2> | |
<meta itemprop="price" content="<?php echo $product->get_price(); ?>" /> | |
<meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" /> | |
<link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" /> | |
</div> | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment