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
// Adds 'Udsolgt' label to produkts out of stock | |
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_stock', 10); | |
function woocommerce_template_loop_stock() { | |
global $product; | |
if ( ! $product->managing_stock() && ! $product->is_in_stock() ) | |
echo '<p class="stock out-of-stock">Udsolgt</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
<?php | |
/** Customise the post-info function */ | |
add_filter( 'genesis_post_info', 'genesischild_post_info' ); | |
function genesischild_post_info($post_info) { | |
if (!is_page()) { | |
$post_info = 'Posted on [post_date] Written by [post_author] [post_comments] [post_edit]'; //Edit to relevant text | |
//$post_info = ''; //To remove text | |
return $post_info; | |
} | |
} |
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
# Optimized expire cache and compression | |
# For WordPress | |
# by ellegaard ID | |
# Insert above default WP section in .htaccess - use with caution! | |
# BEGIN Manual editing for speed | |
## BEGIN Expire headers | |
<ifModule mod_expires.c> | |
AddType application/font-sfnt otf ttf | |
AddType application/font-woff woff |
NewerOlder