Skip to content

Instantly share code, notes, and snippets.

@dessibelle
Created September 18, 2013 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dessibelle/6607546 to your computer and use it in GitHub Desktop.
Save dessibelle/6607546 to your computer and use it in GitHub Desktop.
Example WordPress plugin to override CSS
/* CSS overrides goes here */
#some-elem .some-class {
display: none;
}
<?php
/*
Plugin Name: Override Jetpack CSS
Plugin URI: http://dessibelle.se
Description: Overrides Jetpack CSS by enqueueing additional CSS
Author: Simon Fransson
Version: 1.0
Author URI: http://dessibelle.se/
*/
function oc_init() {
wp_enqueue_style( 'oc-style', plugins_url( 'jetpack-override.css', __FILE__ ), array(), '1.0' );
}
add_action( 'init', 'oc_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment