Support » Plugin: Widget CSS Classes » conflict with before_widget arg

  • Resolved Patrik Illy

    (@illycz)



    Thanks for great plugin!

    But I have one problem, I’m using before_widget and after_widget args and your plugin adds classes to wrapper instead widget element.

    This is my before_widget option:

    
    <div class="col-sm-6 col-lg-12"><div class="c-Sidebar-wrapWidget"><section id="%1$s" class="widget %2$s">
    

    My current HTML output:

    
    <div class="widget-odd widget-first widget-1 c-Widget c-Widget--secondary col-sm-6 col-lg-12">
      <div class="c-Sidebar-wrapWidget">
        <section id="text-2" class="widget widget_text">
          Widget content
        </section>
      </div>
    </div>
    

    What I need:

    
    <div class="col-sm-6 col-lg-12">
      <div class="c-Sidebar-wrapWidget">
        <section id="text-2" class="widget-odd widget-first widget-1 c-Widget c-Widget--secondary widget widget_text">
          Widget content
        </section>
      </div>
    </div>
    

    Thanks for any suggestion!

    • This topic was modified 2 months ago by  Patrik Illy.
    • This topic was modified 2 months ago by  Patrik Illy.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.