WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Grid / List toggle
[resolved] grid/list on non-shop pages with shortcodes (8 posts)

  1. Samantha
    Member
    Posted 1 year ago #

    Hello,
    This grid/list toggle works great on the shop page. On pages created using [product_category category="categoryOne"] shortcode, it doesn't appear. Is there a way to show the grid/list toggle in non-shop pages?

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

  2. Samantha
    Member
    Posted 1 year ago #

    Anyone have a clue on getting the shortcodes to work on regular pages? I really don't want to go back to Shopp for this feature. Thank you.

  3. wattsyourwebsite
    Member
    Posted 1 year ago #

    Has anyone fund a solution to this one?

  4. Samantha
    Member
    Posted 1 year ago #

    No. Unfortunately I am going back to Shopp plugin since I cannot get feature.

  5. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    Wont work I'm afraid. The shortcodes are not really designed to be used for main site structure, use the WooCommerce product archives / categories instead.

  6. Samantha
    Member
    Posted 1 year ago #

    James-

    I am not sure what "use the WooCommerce product archives / categories instead" means. What about adding a filter to the function.php?

    add_filter('what_goes_here', 'do_shortcode');

    I had issues with shortcodes for the front page of a theme and Scott W from Woo suggested the above code. Please advise.

    Thank you!

  7. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    I meant use WordPress built in functionality for displaying categories / archives. No need to pages / shortcodes.

    It wont work on a page with a shortcode as the toggle is hooked into the WooCommerce template actions.

  8. jayseventwo
    Member
    Posted 1 year ago #

    Can you provide an example for this, James, as i believe this is the answer to my other post regarding getting it to work in searc results etc pages.

    I figured that on regular pages it is - now obvious to me - not using the woocommerce loop but the regular loop.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.