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 override_mce_options($initArray) { | |
$opts = '*[*]'; | |
$initArray['valid_elements'] = $opts; | |
$initArray['extended_valid_elements'] = $opts; | |
return $initArray; | |
} | |
add_filter('tiny_mce_before_init', 'override_mce_options'); |
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
remove_action( 'admin_notices', 'woothemes_updater_notice' ); |
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('show_admin_bar', '__return_false'); |
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('loop_shop_columns', 'loop_columns'); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 3; // 3 products per row | |
} | |
} |
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( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 ); |
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
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', '10' ); |
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
<div class="next-prev-page"> | |
<span class="inner"> | |
<?php | |
$prevPost = get_previous_post(); | |
$prevThumbnail = get_the_post_thumbnail($prevPost->ID, array(150,150) ); | |
$prevLink = get_permalink( $prevPost->ID ); | |
?> | |
<?php if($prevPost){ ?> | |
<a class="prev" href="<?php echo $prevLink; ?>"> |
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
/** | |
* Returns max price for grouped products | |
**/ | |
function wc_grouped_price_html( $price, $product ) { | |
$all_prices = array(); | |
foreach ( $product->get_children() as $child_id ) { | |
$all_prices[] = get_post_meta( $child_id, '_price', true ); | |
} |
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 $shop_page_url = get_permalink( woocommerce_get_page_id( 'shop' ) ); echo $shop_page_url; ?> |
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
It was a joomla module. I am just putting the important parts of this script. You will have to customize it for your wordpress site. | |
First declare some variables. | |
echo '<script language="javascript"> | |
var fan_page_url = "'.$params->get( 'fkbook_url' ).'"; | |
var opacity = '.$params->get( 'fkbook_opacity' ).'; | |
var time = '.$params->get( 'fkbook_time' ).'; | |
var width = '.$params->get( 'fkbook_width' ).'; |
OlderNewer