Created
September 18, 2013 10:56
-
-
Save dessibelle/6607546 to your computer and use it in GitHub Desktop.
Example WordPress plugin to override CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS overrides goes here */ | |
#some-elem .some-class { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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