• Resolved devell

    (@devell)


    Hello. Thanks for your plugin, I think this is exactly what I was looking for, but I still cannot figure out how it can help me. I want to use your plugin to make a filter in the store that will be displayed on mobile devices. Since the standard sidebar with filters on mobile devices goes down and is located under the goods, which is very inconvenient and makes no sense. I made a sidebar, added widgets with filters there, but I can not display it where I need it. I need the button to appear in front of the products in the store. I tried to add a shortcode <?php echo do_shortcode( ‘[ocs_trigger id=”mobile”]’ ); ?> to the archive-product.php file, but nothing shows up and I can’t figure out what I’m doing wrong. Can you help me please?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @devell

    When checking your link I see the filter button is already there, only on the wrong location for mobile devices.
    You should go through your templates and find the right location for this button.

    Are you sure archive-product.php is the template that is used for this page?
    Have you tried just adding a regular string at the same space and see if that shows up?

    Cheers, Jory

    Thread Starter devell

    (@devell)

    yes, I temporarily put a filter button in the sidebar widget while adding filters. Usually it is this file that answers, I thought maybe I wrote the shortcode incorrectly, thanks, I’ll try to look for another file, maybe.

    Thread Starter devell

    (@devell)

    This file is still responsible for the output correctly, checked that the button is present in the code, but it is equal to 0. Can you tell me why it has no dimensions and is not visible?
    screenshot: https://pastenow.ru/A913X

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @devell

    I think because you didn’t provide other parameters for the button text and icon.
    See the shortcode builder in the plugin settings.

    Cheers, Jory

    Thread Starter devell

    (@devell)

    Oh, thank you so much. I didn’t even think that I needed to add something else to the shortcode. That saved the situation <?php echo do_shortcode( '[ocs_trigger id="mobile" icon="icon dashicons dashicons-menu" element="button" text="Filter"]' ); ?> and now everything looks the way I wanted.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @devell

    No problem! Enjoy the plugin and if you have any questions don’t hesitate to ask!

    Also, please consider leaving a nice review, it will help the plugin grow ??

    Thanks! Jory

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with product filter sidebar’ is closed to new replies.