• Resolved Anonymous User 14879406

    (@anonymized-14879406)


    How can I dynamically change shop page column width when I use add_filter('loop_shop_columns', 'loop_columns');
    if (!function_exists('loop_columns')) {
    function loop_columns() {
    return 2;
    }
    }

    this filter option.

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Anonymous User 14879406

    (@anonymized-14879406)

    I am still waiting for my answer. Any one in support… ??

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Do not bump. This is a community forum.

    Depends what you mean by dynamically. Your ‘dynamic’ code would go inside the function. Use a more unique function name though – that might conflict.

    Thread Starter Anonymous User 14879406

    (@anonymized-14879406)

    Its ok… Please suggest a right way how can I do this… My problem is when I select 2 image its looks like this http://postimg.org/image/u4la5m3qf/
    I can fix this with css to set it .. But when I select 3 column then how can I fix this… again.. sorry for hurry…

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I don’t know what you’re asking. Your code changes the amount per column – what is the problem?

    Thread Starter Anonymous User 14879406

    (@anonymized-14879406)

    Got it.. finally fixed… I done this with wp_localize_script(). This function is really useful.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘shop page column width’ is closed to new replies.