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 | |
/** | |
* Template Name: Custom | |
* Description: The template for displaying custom page with custom function. | |
* | |
* @category PrimaShop | |
* @package Templates | |
* @author PrimaThemes | |
* @link http://www.primathemes.com | |
*/ |
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('woocommerce_sale_flash', 'my_custom_sale_flash', 10, 3); | |
function my_custom_sale_flash($text, $post, $_product) { | |
return '<span class="onsale"> Promo! </span>'; | |
} |
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
/* minimum height of header */ | |
#header { | |
min-height: 150px; | |
} | |
/* fixed height for logo */ | |
.header-logo-active #header-title, .header-logo-active #header-title .site-title, .header-logo-active #header-title .site-title a { | |
height: 150px; | |
} | |
/* toplevel menu padding: 65+20+65=150 */ | |
#header-menu .menu-primary a, #header-menu .menu-primary a:visited { |
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
#footer-widgets .widget { | |
text-align: center; | |
} | |
#footer-widgets .widget h3.widget-title { | |
text-align: center; | |
} | |
#footer-widgets .woocommerce .star-rating { | |
text-align: center; | |
margin: auto; | |
} |
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
/* default button */ | |
button, input[type="button"], input[type="reset"], input[type="submit"] { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
} | |
/* top navigation "my cart" button */ | |
#topnav ul.topnav-menu li a.topnav-cart-count { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; |
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
/* one column checkout page */ | |
.woocommerce #customer_details.col2-set .col-1, .woocommerce-page #customer_details.col2-set .col-1, | |
.woocommerce #customer_details.col2-set .col-2, .woocommerce-page #customer_details.col2-set .col-2 { | |
clear: both; | |
float: none !important; | |
width: 100% !important; | |
margin-right:0 !important; | |
text-align: left; | |
padding-bottom: 20px; | |
} |
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
/* centering header content (logo and menu) */ | |
#header-title, | |
#header-title .site-title, | |
#header-title .site-title a { | |
float:none !important; | |
width:auto !important; | |
text-align: center; | |
background-position: center center !important; | |
} | |
#header-menu, |
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
/* show underline for top navigation menu on hover state */ | |
#topnav ul.topnav-menu a:hover { | |
text-decoration: underline; | |
} | |
/* show underline for header menu on hover state */ | |
#header-menu .menu-primary a:hover { | |
text-decoration: underline; | |
} |
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('woocommerce_currency_symbol', 'change_denmark_existing_currency_symbol', 10, 2); | |
function change_denmark_existing_currency_symbol( $currency_symbol, $currency ) { | |
switch( $currency ) { | |
case 'DKK' : $currency_symbol = 'DKK'; break; | |
} | |
return $currency_symbol; | |
} |
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 |