Support » Plugin: WooCommerce Grid / List toggle » [Plugin: WooCommerce Grid / List toggle] List view to show Description rather than excerpt

  • Resolved sparx

    (@sparx)


    I am trying to use this plugin to offer a list view that uses the description rather than the excerpt. I have found the code that pulls the excerpt:

    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);

    and swapped for:

    add_action( 'woocommerce_after_shop_loop_item', 'the_content', 5);

    Now this works fine and shows the description for the product, BUT it also shows the description on the default grid view, which I do not want – I only want the description on the list view option.

    Any ideas?

    Many thanks in advance.

    sparx

    http://wordpress.org/extend/plugins/woocommerce-grid-list-toggle/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author James Koster

    (@jameskoster)

    You’ll need to hide the content in grid view. Wrap the content in a div with a unique class IE ‘product-content’ and add the following css;

    ul.products.grid .product-content { display:none; }

    Many thanks, I will try this out and post back here.

    sparx

    Hi, I was wondering how can I include the excerpt/description into grid view? Thanks! I’m using Woostore and woocommerce.

    http://wordpress.org/extend/plugins/woocommerce-grid-list-toggle/

    Plugin Author James Koster

    (@jameskoster)

    Remove the following from assets/style.css;

    ul.products.grid div[itemprop="description"] {
      display: none;
    }

    Or over ride it in your theme;

    ul.products.grid div[itemprop="description"] {
      display: block !important;
    }

    Hello, i am trying to get the product description to show, but not in grid view.

    This Works!
    add_action( ‘woocommerce_after_shop_loop_item’, ‘the_content’, 5);

    But i can not get this to work 🙁

    Wrap the content in a div with a unique class IE ‘product-content’ and add the following css;

    ul.products.grid .product-content { display:none; }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WooCommerce Grid / List toggle] List view to show Description rather than excerpt’ is closed to new replies.