This is a continuation of a closed post found here:
The solution described in the previous post (Part II) worked well to force a left sidebar on shop product category pages when the theme's default sidebar is right.
The solution worked by detecting that the user is on a product category page using is_product_category() and then forcing the left sidebar accordingly.
Unfortunately, this solution is not working on the shop product search results page because the system is correctly detecting that the user is NOT on a product category page and so the default right sidebar is shown.
My question is: how can I detect that the user is on the shop product search results page so that I can force a left sidebar for this page as well? Is there a function like is_product_search() that I can also test for?