Hi,
I´m using a script called jScrollPane and it works great in the frontend, but when I edit in Pro the preview disappear when I make a change and the script is activated.
I´m using this function in functions.php to add the script and I wonder if it is possible to exclude this when editing in Pro as the script isn´t necessary when editing?
function add_head_script(){
?>
<!-- styles needed by jScrollPane -->
<link type="text/css" href="/style/jquery.jscrollpane.css" rel="stylesheet" media="all" />
<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="/script/jquery.mousewheel.js"></script>
<!-- the jScrollPane script -->
<script type="text/javascript" src="/script/jquery.jscrollpane.min.js"></script>
<?php
}
add_action( 'wp_head', 'add_head_script' );
I have tried the code from this post with no luck:
Best regards
Melker

