WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Change CSS classes using Hooks or Filters (3 posts)

  1. Werner
    Member
    Posted 1 year ago #

    I am adding Twitter Bootstrap to my custom WooCommerce theme, which raised a question.
    Is it possible for me to change default classes like "button" (for buttons of course) into something else using Hooks or Filters? I will have to change all "button" classes to "btn" for the Twitter Bootstrap Buttons. Same goes for the Tabbar and some other things.

    The only other solution I came up with is to override all the WooCommerce templates and change all classes manually. But of course this is not elegant and a pain with any upcoming updates.

    I really hope someone can help me with this.

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Or you can do it the other way around where you modify the bootstrap less to look for what WooCommerce has already set.

  3. Werner
    Member
    Posted 1 year ago #

    Also thought about that option, but that results in me having to edit the complex Bootstrap CSS. And re-do that every new release. So that's why I decided to ask this question here...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic