AmandaEve
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product Grid WonkinessOh – sorry Mike … didn’t see your comments.
Forum: Plugins
In reply to: [WooCommerce] Product Grid Wonkinessi just tried:
// Change number or products per row to 3 add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 3; // 3 products per row } }nothing
Forum: Plugins
In reply to: [WooCommerce] Product Grid Wonkinessi added this …
add_filter( 'loop_shop_columns', 'wc_loop_shop_columns', 1, 10 ); /* * Return a new number of maximum columns for shop archives * @param int Original value * @return int New number of columns */ function wc_loop_shop_columns( $number_columns ) { return 2; }but it didn’t do anything
Forum: Plugins
In reply to: [WooCommerce] Product Grid Wonkinessi found this in custom-functions.php
add_filter( 'loop_shop_columns', 'thim_woocommerce_columns_product', 10 );Forum: Plugins
In reply to: [WooCommerce] Subscription Descriptioni think i did it. i think.
i replaced the single-product/price.php template with this:
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $product; ?> <?php if ( !$product->is_type( array( 'variable', 'grouped' ) ) ) : ?> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p> <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> <?php endif; ?>Forum: Plugins
In reply to: [WooCommerce] Calling usernamethanks. Maybe I should brush up on my php.
Forum: Plugins
In reply to: [WooCommerce] Change 'Add To Cart' based on Subscription Statusthanks.
Forum: Plugins
In reply to: [WooCommerce] Change 'Add To Cart' based on Subscription Statusthat sounds promising … is there a tutorial online for newbies that I could implement?
Forum: Plugins
In reply to: [WooCommerce] Change 'Add To Cart' based on Subscription Statusokay … so I use the user_has_subscription function … where? in functions.php I imagine.
You said “in the same way you’ve overwritten single-product/add-to-cart/simple.php”
^ I didn’t do that. lol.
Forum: Plugins
In reply to: [WooCommerce] Change 'Add To Cart' based on Subscription StatusGreat! I’ll look into it. Thanks so much.
Forum: Fixing WordPress
In reply to: Insert Post Cats not showingThere was an option at the bottom …
Post Format Options
URL of video for Video Post Format. Example: http://vimeo.com/41369274
and I had the video url in there … that’s why it was messed up.
Forum: Hacks
In reply to: Remove Shortcode Hookoh. thanks. I’ll maybe look for another option. #OverMyHead
Forum: Hacks
In reply to: Remove Shortcode Hookcould I use this in wordpress?
http://jsbin.com/aguyuw/1/edit?html,js,outputForum: Hacks
In reply to: Remove Shortcode HookSorry – I’m not sure what you mean.
I thought I’d add that code to the functions.php file. and then somehow call it from my posts or pages.
I was wondering how I’d call it.
If I have a piece of shortcode that shows an image, but I wanted the image to go away after 20 seconds.
What would I put in the actualy page to remove that shortcode?
ex:
[remove_content_timer][show image="image.gif"][/remove_content_timer]note: I’m sorry – I’m clueless.
Forum: Fixing WordPress
In reply to: Widget codeyeah … i did that. But it all came up strange. But I fixed the problem afterward, thanks for replying to my post.
I’m not exactly sure how I did it – but it’s done.
thanks again.