• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

plentyvegan

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 11 posts - 21 through 31 (of 31 total)
← 1 2
  • Author
    Posts
  • July 21, 2016 at 12:51 pm in reply to: Remove Img Title Prettyphoto lightbox Woocommerce Product Page #189953
    plentyvegan
    Member

    Hmmm - no dice.

    July 21, 2016 at 12:34 pm in reply to: Remove Img Title Prettyphoto lightbox Woocommerce Product Page #189949
    plentyvegan
    Member

    I 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 #189943
    plentyvegan
    Member

    Christoph - 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 #188386
    plentyvegan
    Member

    Thanks 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 #187760
    plentyvegan
    Member

    Update:

    I uninstalled simple sidebars and installed WooSidebars. Seems to work like a charm.

    Thanks!

    June 17, 2016 at 11:52 am in reply to: Breadcrumbs Genesis Connect for Woocommerce #187759
    plentyvegan
    Member

    Won'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?

    June 17, 2016 at 11:47 am in reply to: Breadcrumbs Genesis Connect for Woocommerce #187756
    plentyvegan
    Member

    Ok, 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 #187748
    plentyvegan
    Member

    I'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 #187719
    plentyvegan
    Member

    Ah 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 #187717
plentyvegan
Member

I'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 #187714
plentyvegan
Member

Thanks 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 rolling

Now 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.

  • Author
    Posts
  • Viewing 11 posts - 21 through 31 (of 31 total)
    ← 1 2
    « Previous Page

    CTA

    Ready to get started? Create a site or shop for themes.

    Create a site with WP EngineShop for Themes

    Footer

    StudioPress

    © 2026 WPEngine, Inc.

    Products
    • Create a Site with WP Engine
    • Shop for Themes
    • Theme Features
    • Get Started
    • Showcase
    Company
    • Brand Assets
    • Terms of Service
    • Accptable Usse Policy
    • Privacy Policy
    • Refund Policy
    • Contact Us
    Community
    • Find Developers
    • Forums
    • Facebook Group
    • #GenesisWP
    • Showcase
    Resources
    • StudioPress Blog
    • Help & Documentation
    • FAQs
    • Code Snippets
    • Affiliates
    Connect
    • StudioPress Live
    • StudioPress FM
    • Facebook
    • Twitter
    • Dribbble