Skip to content

Instantly share code, notes, and snippets.

@mjltlh
Created September 16, 2014 21:03
Show Gist options
  • Save mjltlh/aa5efbc8a6ea49bcf283 to your computer and use it in GitHub Desktop.
Save mjltlh/aa5efbc8a6ea49bcf283 to your computer and use it in GitHub Desktop.
Gravity style kill
//WP Enqueue scripts handler
public function WPEnqueueScriptsHandler(){
//if(!is_single() && SKGravityOptions::getInstance()->isInPageShortcode()==true){
//$this->loadFrontendStyles();
//}
if(is_single()){
if(GRP_POST_SLUG==get_post_type()){
$this->loadFrontendStyles();
}
}
}
@AmberP
Copy link

AmberP commented Nov 4, 2014

This snippet of code can be found within the Parallax Gravity plugin in parallax_gravity/com/sakuraplugins/php/plugin_core.php

Commenting out the script as seen above allows you to use the In Page Shortcodes within Parallax Gravity Plugin without overriding any existing CSS within the rest of your Wordpress site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment