JoryHogeveen / off-canvas-sidebars

This plugin will add various options to implement off-canvas sidebars in your WordPress theme based on the Slidebars jQuery plugin.
GNU General Public License v2.0
14 stars 4 forks source link

is off-canvas-sidebar forcing vertical outputs? #90

Closed sayantandas closed 4 years ago

sayantandas commented 4 years ago

Describe the bug

i am using YITH product filters with the off-canvas-sidebar. I see the attribute filters are showing as lists, one in each line instead of displaying horizontally

Steps to reproduce the behavior:

  1. Go to 'https://tagprive.adwaitatech.com/shop'
  2. Click on 'Filters'
  3. Check 'Filter by Color' and 'Filter by size'
  4. See error

Expected behavior

Expected behaviour is to display the filter horizontally

Screenshots

If applicable, add screenshots to help explain your problem.

Specifications

Additional context

Tested with Oceanwp theme's inbuilt off-canvas theme the attributes show up horizontally

JoryHogeveen commented 4 years ago

Hello @sayantandas

This is not an error or bug, it's an incompatibility with your theme CSS and the YITH plugin. This plugin does not add any CSS for styling the inner elements of a slidebar, that is up to your theme.

In your case there is a CSS selector in your theme that prevents the list elements from floating beside eachother. See styles.css line 3382:

.widget li {
    margin: 0;
    padding: 0 0 1em;
    list-style: none;
    clear: both; <<<<<<<<<<<<< This line.
}

You'll need to overwrite this for your sidebars.