Forum Replies Created
-
AuthorPosts
-
July 21, 2016 at 12:51 pm in reply to: Remove Img Title Prettyphoto lightbox Woocommerce Product Page #189953
plentyvegan
MemberHmmm - no dice.
July 21, 2016 at 12:34 pm in reply to: Remove Img Title Prettyphoto lightbox Woocommerce Product Page #189949plentyvegan
MemberI added the line above. The image title is still showing up in the lightbox on the product page.
To recap, this is what I've added to the functions php file in the Divine Theme code:
//* Remove image title
add_filter( 'woocommerce_single_product_image_thumbnail_html', 'gd_remove_title', 10, 4 );
function gd_remove_title( $image_html, $attachment_id, $post_ID, $image_class ) {
$props = wc_get_product_attachment_props( $attachment_id );
$props['alt'] = '';
$image_html = sprintf(
'%s',
esc_url( $props['url'] ),
esc_attr( $image_class ),
wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ), 0, $props )
);return $image_html;
}Thanks again for digging in with me.
July 21, 2016 at 11:47 am in reply to: Remove Img Title Prettyphoto lightbox Woocommerce Product Page #189943plentyvegan
MemberChristoph - I made the image titles the product titles. I removed the dashes. It looks like it's the product title but it's actually the image title that you are seeing.
I added the code above but nothing seems to have changed: http://plentyvegan.com/product/daiya-foods-cheezy-mac/
Thoughts?
Thanks.
June 27, 2016 at 10:23 am in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #188386plentyvegan
MemberThanks for your help. I think I have a workable solution for now. Great to have the code for the custom sidebar if that looks like a good option for the future.
Thanks again.
June 17, 2016 at 12:16 pm in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #187760plentyvegan
MemberUpdate:
I uninstalled simple sidebars and installed WooSidebars. Seems to work like a charm.
Thanks!
plentyvegan
MemberWon't that make it so in instances where I want plentyvegan.com to be "Home" (like here: http://plentyvegan.com/blog/) it will be the shop, though?
plentyvegan
MemberOk, I had misinterpreted the plugin's FAQ and thought that it instructed you to turn off breadcrumbs in settings in order for them to work in Genesis Connect.
However, now I have another problem. How do I make plentyvegan.com/shop the url for "Home" in the breadcrumb and not plentyvegan.com?
Ex: http://plentyvegan.com/product-category/snacks/crackers/
Thanks!
June 17, 2016 at 9:48 am in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #187748plentyvegan
MemberI'm a bit lost on this point. I have WooCommerce Genesis Connect installed and Genesis Simple Sidebars. What does it mean that Connect includes support for Sidebars?
June 16, 2016 at 5:03 pm in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #187719plentyvegan
MemberAh ok.
Sounds like your suggestion of:
- You can install a plugin like Widget Logic and use the is_product() conditional tag
Is simple enough. I'll try that route.
Thanks for your help - I'll give it a go tomorrow and if I have issues, might hit you up for more suggestions. Great help!
June 16, 2016 at 4:52 pm in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #187717plentyvegan
MemberI've asked the author - thought I'd try you too just in case there's no response there.
Yeah that page show them stacked (http://plentyvegan.com/product/herb-crackers/). The Simple Sidebar begins at "Product Categories". If you click to the blog, you'll see that the sidebar there doesn't have that part.
June 16, 2016 at 4:04 pm in reply to: Show WooCommerce Product Categories only in Sidebar on WooCommerce Pages #187714plentyvegan
MemberThanks for responding so quickly!
I actually just installed Genesis Simple Sidebars. It's great.
Now, I want to make sure only that sidebar appears on my WooCommerce pages. To that end, I dropped this code in the functions.php file:
function themeprefix_remove_default_sidebar() {
if( is_page ( array( 'cart', 'checkout' )) || 'product' == get_post_type() ) {//set which pages
remove_action( 'genesis_sidebar', 'ss_do_sidebar' );
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
add_action( 'genesis_sidebar', 'themeprefix_add_woo_sidebar' );
}
}
//Alternative Sidebar
function themeprefix_add_woo_sidebar() {
dynamic_sidebar( 'Plenty Vegan Market' ); //add in the sidebar name
}
add_action( 'genesis_before_sidebar_widget_area', 'themeprefix_remove_default_sidebar' ); //sets the ball rollingNow what is happening is the the sidebars are stacked, rather than the Primary Sidebar that I have active on the entire site being removed. Here's an example: http://plentyvegan.com/product/herb-crackers/
I grabbed that code from someone's site so I can't figure out what to edit to remove the Primary Sidebar. Do you know what I edit?
Thanks again.
-
AuthorPosts