Title: Override CSS
Last modified: September 1, 2016

---

# Override CSS

 *  Resolved [Digitsoft](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/)
 * I’ve tried overriding the CSS using the plugin Simple Custom CSS and in the child
   theme style.css, but no luck. The only way I’ve been able to change the button
   alignment is to edit the /public/assets/css file directly, which I definitely
   don’t want to do.
 * I need to override the float:left to float:center:
    .offers-for-woocommerce-make-
   offer-button-catalog { float:left; position:relative; }
 * [https://wordpress.org/plugins/offers-for-woocommerce/](https://wordpress.org/plugins/offers-for-woocommerce/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536538)
 * Using a plugin isn’t necessary. Overriding in the child theme’s style.css would
   be the way to do it. If you’ve done that and it’s not working then either the
   rule you adjusted isn’t correct, or it could be that you have caching / CDN services
   in play that are still loading up the original CSS.
 * Please check into those things and let me know if you still have problems.
 *  Thread Starter [Digitsoft](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536559)
 * I know a plugin isn’t necessary, but easy for quick tests.
 * I copied this line from the plugin’s css file directly and just changed left 
   to center in the child theme style.css:
    .offers-for-woocommerce-make-offer-button-
   catalog { float:center; position:relative; }
 * This is a pre-live site and there’s no CDN or caching enabled.
 * LMK if you have any ideas…
 * Thanks!
 * Rob
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536562)
 * What is the URL to your site so I can take a quick look at the page with the 
   button on it?
 *  Thread Starter [Digitsoft](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536589)
 * I don’t want to publish here, so email sent to your service address.
 * I’m still trying to figure this one out…
 *  Thread Starter [Digitsoft](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536666)
 * I spent 8 hrs trying to figure out a way to make my css override the offer plugin
   css and deemed it impossible.
 * My suggestions:
    Add an option to select the button alignment OR Add an option
   to specify an alternate button class
 * I fixed it for now using this in my functions.php file. I just copied the current
   css file into a new file in my child theme and made my edits.
 * It’s not even remotely a long term solution, but best I could come up with.
 * add_action( ‘wp_print_styles’, ‘deregister_offer_plugin_styles’, 100 );
    function
   deregister_offer_plugin_styles() { wp_deregister_style( ‘offers-for-woocommerce-
   plugin-styles’ ); wp_enqueue_style( ‘offers-for-woocommerce-plugin-styles’, get_stylesheet_directory_uri().’/
   offer-plugin.css’ ); }
 * Hope this helps someone…
 * It’s an AWESOME plugin!
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536668)
 * Glad you got it worked out.
 * We’ll certainly look into adding something like that in a future update. Thanks
   for the feedback!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Override CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/offers-for-woocommerce_edefee.svg)
 * [Offers for WooCommerce](https://wordpress.org/plugins/offers-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/offers-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/offers-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/offers-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/offers-for-woocommerce/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [override css](https://wordpress.org/support/topic-tag/override-css/)

 * 6 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/override-css-5/#post-7536668)
 * Status: resolved