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

    (@jameskoster)

    You’re on the right track. Try using is_search() as well ??

    Thread Starter jayseventwo

    (@jayseventwo)

    Thanks, i have added that to three places in grid-list-toggle.php: – once in Setup and twice in Scripts & styles:

    if ( is_shop() || is_product_category() || is_product_tag() || is_search() )

    but it still does not appear to be working?

    I feel i am nearly there, but am missing something simple! ??

    Thread Starter jayseventwo

    (@jayseventwo)

    Not sure why this is marked resolved, as it hasn’t been.

    I thought the above code would work but it is still not displaying. Is there a way to manually add some code to a page template to insert it?

    Cheers.

    Thread Starter jayseventwo

    (@jayseventwo)

    hmmm, i thought perhaps if i added the following in my template:

    <?php if(function_exists('wc_list_grid_toggle'))
    {
    wc_list_grid_toggle();
    }
    ?>

    and removed the if statement around the three areas in grid-list-toggle.php so that the files load in all pages, not select ones, it might work, but still no joy.

    Any possibility of some help – this is driving me crazy, haha

    Thanks

    Did you ever figure this out? Trying to do the same thing. Where do I add this in the .php file?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add to search result page?’ is closed to new replies.