I’m still assuming the theme loads all the javascript like jquery manually as i explained before, so in that case a couple of files would have to be edited, all the javascript should be removed from themefolder/header.php and added to themefolder/functions.php
jQuery UI is bundled with WordPress so to load jquery and jquery ui (the theme doesn’t need to include them) plus the theme additional scripts, something like this would be good:
In functions.php add:
function fullscren_theme_js() {jquery-ui-dialog
wp_enqueue_script('jquery-ui-core', array('jquery')); // Load jQuery and jQuery UI core
wp_enqueue_script('jquery-ui-dialog'); // jQuery UI Dialog
wp_enqueue_script('fullscreen', get_bloginfo('stylesheet_directory') . '/js/theme.js');
wp_enqueue_script('fullscreen-nav', get_bloginfo('stylesheet_directory') . '/js/nav.js');
}
add_action('wp_print_scripts', 'fullscren_theme_js');
Create a new theme.js file in theme’s “js” folder and add this:
jQuery(document).ready(function(){
jQuery(navigationArrow("https://visioninsight.net/blog/wp-content/themes/fullscreen/fullscreen/images/arrow.png"));
});
jQuery(function(){
// Dialog
jQuery('#dialog').dialog({
autoOpen: false,
modal: true,
width: 600,
height: 400,
buttons: {
"Close": function() {
jQuery(this).dialog("close");
}
}
});
// Dialog Link
jQuery('#dialog_link').click(function(){
jQuery('#dialog').dialog('open');
return false;
});
//hover states on the static widgets
jQuery('ul#icons li').hover(
function() { jQuery(this).addClass('ui-state-hover'); },
function() { jQuery(this).removeClass('ui-state-hover'); }
);
});
And in header.php remove all of this:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js" charset="utf-8"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(navigationArrow("https://visioninsight.net/blog/wp-content/themes/fullscreen/fullscreen/images/arrow.png"));
});
jQuery(function(){
// Dialog
jQuery('#dialog').dialog({
autoOpen: false,
modal: true,
width: 600,
height: 400,
buttons: {
"Close": function() {
jQuery(this).dialog("close");
}
}
});
// Dialog Link
jQuery('#dialog_link').click(function(){
jQuery('#dialog').dialog('open');
return false;
});
//hover states on the static widgets
jQuery('ul#icons li').hover(
function() { jQuery(this).addClass('ui-state-hover'); },
function() { jQuery(this).removeClass('ui-state-hover'); }
);
});
</script>
<script type="text/javascript" src="https://visioninsight.net/blog/wp-content/themes/fullscreen/fullscreen/js/nav.js"></script>
As you can see it quite a bit of work and if there’s any directory or file in the wrong place it won’t work. Give it a go if you like (make a backup first) and be sure to ask the theme author to fix it himself. ??
Also on s side note i do not know what jQuery UI Dialog components the theme requires, looking at the code it might only need the dialog component so i included in the example above.