Created
September 16, 2014 21:03
-
-
Save mjltlh/aa5efbc8a6ea49bcf283 to your computer and use it in GitHub Desktop.
Gravity style kill
This file contains hidden or 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
//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(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.